Merge pull request #7003 from penpot/alotor-fix-transform

🐛 Fix wasm transform issues
This commit is contained in:
Alejandro Alonso 2025-07-30 11:10:54 +02:00 committed by GitHub
commit a3e24785d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@
[app.common.types.container :as ctn] [app.common.types.container :as ctn]
[app.common.types.modifiers :as ctm] [app.common.types.modifiers :as ctm]
[app.common.types.path :as path] [app.common.types.path :as path]
[app.common.types.shape :as shape]
[app.common.types.shape-tree :as ctst] [app.common.types.shape-tree :as ctst]
[app.common.types.shape.attrs :refer [editable-attrs]] [app.common.types.shape.attrs :refer [editable-attrs]]
[app.common.types.shape.layout :as ctl] [app.common.types.shape.layout :as ctl]
@ -637,7 +638,8 @@
(let [objects (dsh/lookup-page-objects state) (let [objects (dsh/lookup-page-objects state)
ignore-tree ignore-tree
(calculate-ignore-tree modif-tree objects) (binding [shape/*wasm-sync* false]
(calculate-ignore-tree modif-tree objects))
options options
(-> params (-> params

View File

@ -395,7 +395,7 @@
(gm/set-objects-modifiers objects))] (gm/set-objects-modifiers objects))]
(if (features/active-feature? state "render-wasm/v1") (if (features/active-feature? state "render-wasm/v1")
(rx/of (dwm/apply-wasm-modifiers modif-tree)) (rx/of (dwm/apply-wasm-modifiers modif-tree {:ignore-snap-pixel true}))
(rx/of (dwm/apply-modifiers* objects modif-tree nil options)))))))) (rx/of (dwm/apply-modifiers* objects modif-tree nil options))))))))
(defn change-orientation (defn change-orientation