mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -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))]
|
||||
|
|
|
@ -337,7 +337,7 @@
|
|||
;; NOTE: ensure we have a fresh shallow copy of shape
|
||||
shape (cr/clone shape)
|
||||
shape (adjust-shape-flips! shape points)
|
||||
|
||||
|
||||
center (gco/points->center points)
|
||||
selrect (calculate-selrect points center)
|
||||
transform (calculate-transform points center selrect)
|
||||
|
|
|
@ -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