🐛 Fix added children detection in fix-touched script

This commit is contained in:
Andrés Moya 2023-09-22 10:51:01 +02:00 committed by Andrey Antukh
parent e9bd769823
commit de8758c4ca
2 changed files with 11 additions and 2 deletions

View file

@ -366,8 +366,8 @@
(let [matches? (fn [[child-id ref-child-id]]
(let [child (ctn/get-shape page child-id)]
(= (:shape-ref child) ref-child-id)))
equal? (every? matches? (d/zip (:shapes shape) (:shapes ref-shape)))]
(when (and (not equal?) (not (cph/touched-group? shape :shapes)))
equal? (every? matches? (d/zip-all (:shapes shape) (:shapes ref-shape)))]
(when (and (not equal?) (not (cph/touched-group? shape :shapes-group)))
(println " -> set touched " (:name shape) (:id shape) :shapes :shapes-group))
(cond-> shape
(and (not equal?) (not (cph/touched-group? shape :shapes-group)))