🐛 Fix grid lines

This commit is contained in:
Alejandro Alonso
2026-02-05 13:51:36 +01:00
committed by Alonso Torres
parent fd3d549f9c
commit 7c7e32d85f
4 changed files with 46 additions and 7 deletions

View File

@@ -618,7 +618,9 @@
(extract-property-changes modif-tree)]
(-> state
(assoc :prev-wasm-props (:wasm-props state))
(assoc :wasm-props property-changes))))
(assoc :wasm-props property-changes)
;; Keep overlays in sync during WASM transforms.
(assoc :workspace-modifiers modif-tree))))
ptk/WatchEvent
(watch [_ state _]

View File

@@ -98,6 +98,7 @@
drawing (mf/deref refs/workspace-drawing)
focus (mf/deref refs/workspace-focus-selected)
wasm-modifiers (mf/deref refs/workspace-wasm-modifiers)
modifiers (mf/deref refs/workspace-modifiers)
workspace-editor-state (mf/deref refs/workspace-editor-state)
@@ -704,7 +705,8 @@
(when show-grid-editor?
[:& grid-layout/editor
{:zoom zoom
:objects objects-modified
:objects base-objects
:modifiers modifiers
:shape (or (get base-objects edition)
(get base-objects @hover-top-frame-id))
:view-only (not show-grid-editor?)}])]