Make selection rect only for the mask shape

This commit is contained in:
Andrés Moya 2020-10-20 13:17:41 +02:00 committed by Alonso Torres
parent b2ec9aa83a
commit 0ddf6d30b8
2 changed files with 14 additions and 8 deletions

View file

@ -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