🐛 Fixed problem with groups

This commit is contained in:
alonso.torres 2020-12-11 08:27:51 +01:00
parent 45882ba6a1
commit 574e8a92a8
2 changed files with 6 additions and 3 deletions

View file

@ -270,12 +270,12 @@
points (->> children (mapcat :points))
;; Invert to get the points minus the transforms applied to the group
base-points (transform-points points shape-center (:transform-inverse group))
base-points (transform-points points shape-center (:transform-inverse group (gmt/matrix)))
;; Defines the new selection rect with its transformations
new-points (-> (gpr/points->selrect base-points)
(gpr/rect->points)
(transform-points shape-center (:transform group)))
(transform-points shape-center (:transform group (gmt/matrix))))
;; Calculte the new selrect
new-selrect (gpr/points->selrect base-points)]