mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 21:41:38 +02:00
🐛 Fixed problem with groups
This commit is contained in:
parent
45882ba6a1
commit
574e8a92a8
2 changed files with 6 additions and 3 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue