mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 02:48:23 +02:00
✨ Make selection rect only for the mask shape
This commit is contained in:
parent
b2ec9aa83a
commit
0ddf6d30b8
2 changed files with 14 additions and 8 deletions
|
@ -736,7 +736,10 @@
|
|||
(assoc :modifiers
|
||||
(rotation-modifiers gcenter % (- (:rotation group 0))))
|
||||
(geom/transform-shape))))
|
||||
selrect (-> (into [] gxfm (:shapes group))
|
||||
inner-shapes (if (:masked-group? group)
|
||||
[(first (:shapes group))]
|
||||
(:shapes group))
|
||||
selrect (-> (into [] gxfm inner-shapes)
|
||||
(geom/selection-rect))]
|
||||
|
||||
;; Rotate the group shape change the data and rotate back again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue