mirror of
https://github.com/penpot/penpot.git
synced 2025-02-14 02:58:39 -05:00
🐛 Fix some component shapes not synced
This commit is contained in:
parent
93b582c385
commit
43d3b06c30
1 changed files with 10 additions and 8 deletions
|
@ -549,16 +549,17 @@
|
||||||
(:shapes shape-main))
|
(:shapes shape-main))
|
||||||
|
|
||||||
only-inst (fn [changes child-inst]
|
only-inst (fn [changes child-inst]
|
||||||
(when-not (and omit-touched?
|
(if-not (and omit-touched?
|
||||||
(contains? (:touched shape-inst)
|
(contains? (:touched shape-inst)
|
||||||
:shapes-group))
|
:shapes-group))
|
||||||
(remove-shape changes
|
(remove-shape changes
|
||||||
child-inst
|
child-inst
|
||||||
container
|
container
|
||||||
omit-touched?)))
|
omit-touched?)
|
||||||
|
changes))
|
||||||
|
|
||||||
only-main (fn [changes child-main]
|
only-main (fn [changes child-main]
|
||||||
(when-not (and omit-touched?
|
(if-not (and omit-touched?
|
||||||
(contains? (:touched shape-inst)
|
(contains? (:touched shape-inst)
|
||||||
:shapes-group))
|
:shapes-group))
|
||||||
(add-shape-to-instance changes
|
(add-shape-to-instance changes
|
||||||
|
@ -570,7 +571,8 @@
|
||||||
root-inst
|
root-inst
|
||||||
root-main
|
root-main
|
||||||
omit-touched?
|
omit-touched?
|
||||||
set-remote-synced?)))
|
set-remote-synced?)
|
||||||
|
changes))
|
||||||
|
|
||||||
both (fn [changes child-inst child-main]
|
both (fn [changes child-inst child-main]
|
||||||
(generate-sync-shape-direct-recursive changes
|
(generate-sync-shape-direct-recursive changes
|
||||||
|
|
Loading…
Add table
Reference in a new issue