0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🐛 Regenerate components after resize in sync

This commit is contained in:
Andrés Moya 2021-01-11 16:08:52 +01:00 committed by Alonso Torres
parent 6453cb9d11
commit 43b1d3ca43

View file

@ -995,15 +995,27 @@
:else
uoperations)
all-parents (or (cp/get-parents dest-shape (:objects container)) [])
rchanges [(as-> {:type :mod-obj
:id (:id dest-shape)
:operations roperations} $
(if (cp/page? container)
(assoc $ :page-id (:id container))
(assoc $ :component-id (:id container))))
(as-> {:type :reg-objects
:shapes all-parents} $
(if (cp/page? container)
(assoc $ :page-id (:id container))
(assoc $ :component-id (:id container))))]
uchanges [(as-> {:type :mod-obj
:id (:id dest-shape)
:operations uoperations} $
(if (cp/page? container)
(assoc $ :page-id (:id container))
(assoc $ :component-id (:id container))))
(as-> {:type :reg-objects
:shapes all-parents} $
(if (cp/page? container)
(assoc $ :page-id (:id container))
(assoc $ :component-id (:id container))))]]