🐛 Fix problem with paste order

This commit is contained in:
alonso.torres 2024-04-10 10:27:46 +02:00 committed by Andrey Antukh
parent 420178e620
commit 0935390761
2 changed files with 10 additions and 3 deletions

View file

@ -2013,6 +2013,7 @@
(d/index-by :prev-id))
selected (:selected pdata)
objects (:objects pdata)
position (deref ms/mouse-position)
@ -2036,6 +2037,10 @@
index
0)
selected (if (and (ctl/flex-layout? page-objects parent-id) (not (ctl/reverse? page-objects parent-id)))
(into (d/ordered-set) (reverse selected))
selected)
objects (update-vals objects (partial process-shape file-id frame-id parent-id))
all-objects (merge page-objects objects)