mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix create layout over mask destroy mask
This commit is contained in:
parent
a3e583d745
commit
6a257503ae
1 changed files with 3 additions and 1 deletions
|
@ -155,10 +155,12 @@
|
|||
single? (= (count selected-shapes) 1)
|
||||
has-group? (->> selected-shapes (d/seek cph/group-shape?))
|
||||
is-group? (and single? has-group?)
|
||||
has-mask? (->> selected-shapes (d/seek cph/mask-shape?))
|
||||
is-mask? (and single? has-mask?)
|
||||
has-component? (some true? (map ctc/instance-root? selected-shapes))
|
||||
is-component? (and single? has-component?)]
|
||||
|
||||
(if (and (not is-component?) is-group?)
|
||||
(if (and (not is-component?) is-group? (not is-mask?))
|
||||
(let [new-shape-id (uuid/next)
|
||||
parent-id (:parent-id (first selected-shapes))
|
||||
shapes-ids (:shapes (first selected-shapes))
|
||||
|
|
Loading…
Add table
Reference in a new issue