Compare commits

...
Author SHA1 Message Date
Andrés Moya 8405ace04f 🐛 Fix error when reset overrides on a swapped copy 2026-09-11 10:48:07 +02:00
+5 -1
View File
@@ -2783,7 +2783,7 @@
(let [shape-inst (ctn/get-shape container id)
objects (:objects container)
parent (get objects (:parent-id shape-inst))
head (ctn/get-component-shape container parent)
head (ctn/get-component-shape objects parent)
changes
(-> changes
(pcb/with-container container)
@@ -2802,6 +2802,10 @@
(pcb/with-objects objects)
(generate-sync-shape-direct file-full libraries container id true))]
;; If the shape has been swapped, the reset also have to undo the swap. As the
;; shape has been reset and it's not touched now, by the sync above, if we
;; do another reset of the parent, the shape will be reset as it is in the
;; near main component.
(cond-> changes
(some? swap-slot)
(generate-sync-head file-full libraries container id true))))