Merge pull request #1924 from penpot/fix-sync

🐛 Fix some component shapes not synced
This commit is contained in:
Alejandro 2022-05-20 10:39:22 +02:00 committed by GitHub
commit 426758d9b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 8 deletions

View file

@ -549,18 +549,19 @@
(:shapes shape-main))
only-inst (fn [changes child-inst]
(when-not (and omit-touched?
(contains? (:touched shape-inst)
:shapes-group))
(if-not (and omit-touched?
(contains? (:touched shape-inst)
:shapes-group))
(remove-shape changes
child-inst
container
omit-touched?)))
omit-touched?)
changes))
only-main (fn [changes child-main]
(when-not (and omit-touched?
(contains? (:touched shape-inst)
:shapes-group))
(if-not (and omit-touched?
(contains? (:touched shape-inst)
:shapes-group))
(add-shape-to-instance changes
child-main
(d/index-of children-main
@ -570,7 +571,8 @@
root-inst
root-main
omit-touched?
set-remote-synced?)))
set-remote-synced?)
changes))
both (fn [changes child-inst child-main]
(generate-sync-shape-direct-recursive changes