mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
🐛 Fix incorrect attributes usage on shape
This commit is contained in:
parent
d02329115a
commit
9b61aae216
3 changed files with 10 additions and 3 deletions
|
@ -484,7 +484,11 @@
|
|||
|
||||
(contains? object :masked-group?)
|
||||
(-> (assoc :masked-group (:masked-group? object))
|
||||
(dissoc :masked-group?))))
|
||||
(dissoc :masked-group?))
|
||||
|
||||
(contains? object :saved-component-root?)
|
||||
(-> (assoc :saved-component-root (:saved-component-root? object))
|
||||
(dissoc :saved-component-root?))))
|
||||
|
||||
(update-container [container]
|
||||
(d/update-when container :objects update-vals update-object))]
|
||||
|
|
|
@ -425,7 +425,10 @@
|
|||
parent-id (or parent-id frame-id)
|
||||
name (:name obj)
|
||||
|
||||
is-component-root? (or (:saved-component-root? obj) (ctk/instance-root? obj))
|
||||
is-component-root? (or (:saved-component-root obj)
|
||||
;; Backward compatibility
|
||||
(:saved-component-root? obj)
|
||||
(ctk/instance-root? obj))
|
||||
duplicating-component? (or duplicating-component? (ctk/instance-head? obj))
|
||||
is-component-main? (ctk/main-instance? obj)
|
||||
regenerate-component
|
||||
|
|
Loading…
Add table
Reference in a new issue