mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 19:36:12 +02:00
🔧 Move :reg-objects operation to frontend
This commit is contained in:
parent
2bb8c535bd
commit
8ed857b4b9
4 changed files with 120 additions and 26 deletions
|
@ -1526,9 +1526,8 @@
|
|||
(pcb/amend-changes (partial process-rchange media-idx))
|
||||
(pcb/amend-changes (partial change-add-obj-index paste-objects selected index)))
|
||||
|
||||
;; Adds a reg-objects operation so the groups are updated. We add all the new objects
|
||||
;; Adds a resize-parents operation so the groups are updated. We add all the new objects
|
||||
new-objects-ids (->> changes :redo-changes (filter #(= (:type %) :add-obj)) (mapv :id))
|
||||
|
||||
changes (pcb/resize-parents changes new-objects-ids)
|
||||
|
||||
selected (->> changes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue