0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 17:00:36 -05:00

🐛 Fix problems with selection index update

This commit is contained in:
alonso.torres 2021-09-29 11:27:37 +02:00
parent 045a5156d1
commit 48e78125e8
2 changed files with 13 additions and 2 deletions

View file

@ -93,6 +93,16 @@
:text :ignore}
:svg-raw
{:measure :shape
:layer :shape
:constraint :shape
:fill :shape
:shadow :shape
:blur :shape
:stroke :shape
:text :ignore}
:bool
{:measure :shape
:layer :shape
:constraint :shape

View file

@ -64,8 +64,9 @@
(get new-objects id)))
changed-ids (into #{}
(comp (filter changes?)
(filter #(not= % uuid/zero)))
(comp (filter #(not= % uuid/zero))
(filter changes?)
(mapcat #(d/concat [%] (cp/get-children % new-objects))))
(set/union (set (keys old-objects))
(set (keys new-objects))))