mirror of
https://github.com/penpot/penpot.git
synced 2025-07-11 04:17:19 +02:00
✨ Keep the swapped childs if the copies when doing a variant switch
This commit is contained in:
parent
4fddf34a73
commit
a44c70ef69
9 changed files with 197 additions and 34 deletions
|
@ -975,10 +975,11 @@
|
|||
[new-shape all-parents changes]
|
||||
(-> (pcb/empty-changes it (:id page))
|
||||
(pcb/set-undo-group undo-group)
|
||||
(cll/generate-component-swap objects shape ldata page libraries id-new-component index target-cell keep-props-values))
|
||||
(cll/generate-component-swap objects shape ldata page libraries id-new-component
|
||||
index target-cell keep-props-values keep-touched?))
|
||||
|
||||
changes (if keep-touched?
|
||||
(clv/generate-keep-touched changes new-shape shape orig-shapes page libraries)
|
||||
(clv/generate-keep-touched changes new-shape shape orig-shapes page libraries ldata)
|
||||
changes)]
|
||||
|
||||
(rx/of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue