🐛 Set objects modified instead of modif-tree

This commit is contained in:
alonso.torres
2026-02-05 17:24:43 +01:00
committed by Alonso Torres
parent 7c7e32d85f
commit af5dbf2fbc
2 changed files with 4 additions and 8 deletions

View File

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

View File

@@ -98,7 +98,6 @@
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)
@@ -705,10 +704,9 @@
(when show-grid-editor?
[:& grid-layout/editor
{:zoom zoom
:objects base-objects
:modifiers modifiers
:shape (or (get base-objects edition)
(get base-objects @hover-top-frame-id))
:objects objects-modified
:shape (or (get objects-modified edition)
(get objects-modified @hover-top-frame-id))
:view-only (not show-grid-editor?)}])]
[:g.scrollbar-wrapper {:clipPath "url(#clip-handlers)"}