🔧 Move :reg-objects operation to frontend

This commit is contained in:
Andrés Moya 2022-02-23 17:53:27 +01:00
parent 2bb8c535bd
commit 8ed857b4b9
4 changed files with 120 additions and 26 deletions

View file

@ -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