diff --git a/frontend/src/app/main/data/workspace/modifiers.cljs b/frontend/src/app/main/data/workspace/modifiers.cljs index c438cf8815..4b55c9985c 100644 --- a/frontend/src/app/main/data/workspace/modifiers.cljs +++ b/frontend/src/app/main/data/workspace/modifiers.cljs @@ -712,8 +712,7 @@ (ctm/rotation-modifiers shape center angle)) modif-tree - (-> (build-modif-tree ids objects get-modifier) - (gm/set-objects-modifiers objects)) + (build-modif-tree ids objects get-modifier) modifiers (mapv (fn [[id {:keys [modifiers]}]] diff --git a/frontend/src/app/main/data/workspace/transforms.cljs b/frontend/src/app/main/data/workspace/transforms.cljs index dd427e6bd7..5e08d13560 100644 --- a/frontend/src/app/main/data/workspace/transforms.cljs +++ b/frontend/src/app/main/data/workspace/transforms.cljs @@ -406,13 +406,13 @@ (ctm/change-property :grow-type new-grow-type))) modifiers))) - modif-tree - (-> (dwm/build-modif-tree ids objects get-modifier) - (gm/set-objects-modifiers objects))] + modif-tree (dwm/build-modif-tree ids objects get-modifier)] (if (features/active-feature? state "render-wasm/v1") (rx/of (dwm/apply-wasm-modifiers modif-tree {:ignore-snap-pixel true})) - (rx/of (dwm/apply-modifiers* objects modif-tree nil options)))))))) + + (let [modif-tree (gm/set-objects-modifiers modif-tree objects)] + (rx/of (dwm/apply-modifiers* objects modif-tree nil options))))))))) (defn change-orientation "Change orientation of shapes, from the sidebar options form.