Merge pull request #1908 from penpot/eva-no-rotation-in-paths

🐛 Fix rotation value when path is not rotated
This commit is contained in:
Alejandro 2022-05-17 12:09:53 +02:00 committed by GitHub
commit f290465edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@
(not= (:width values) :multiple) (assoc :width width)
(not= (:height values) :multiple) (assoc :height height)))
values (let [{:keys [rotation]} (-> shapes first)]
values (let [{:keys [rotation] :or {rotation 0}} (-> shapes first)]
(cond-> values
(not= (:rotation values) :multiple) (assoc :rotation rotation)))