💄 Add cosmetic improvements to align-object-to-parent fn

This commit is contained in:
Andrey Antukh 2023-07-14 14:54:40 +02:00 committed by Alonso Torres
parent a3f347c9fd
commit e97aab4c7f

View file

@ -1056,10 +1056,10 @@
(defn align-object-to-parent (defn align-object-to-parent
[objects object-id axis] [objects object-id axis]
(let [object (get objects object-id) (let [object (get objects object-id)
parent (:parent-id (get objects object-id)) parent-id (:parent-id (get objects object-id))
parent-obj (get objects parent)] parent (get objects parent-id)]
(gal/align-to-rect object parent-obj axis objects))) (gal/align-to-rect object parent axis objects)))
(defn align-objects-list (defn align-objects-list
[objects selected axis] [objects selected axis]