mirror of
https://github.com/penpot/penpot.git
synced 2026-08-29 08:08:46 +00:00
🐛 Fix invalid transforms on comp-v2 migration
This commit is contained in:
parent
9eb902c682
commit
04fd4e12d7
@ -449,6 +449,14 @@
|
|||||||
(some? (:main-instance shape))
|
(some? (:main-instance shape))
|
||||||
(dissoc :main-instance)
|
(dissoc :main-instance)
|
||||||
|
|
||||||
|
(and (contains? shape :transform)
|
||||||
|
(not (gmt/valid-matrix? (:transform shape))))
|
||||||
|
(assoc :transform (gmt/matrix))
|
||||||
|
|
||||||
|
(and (contains? shape :transform-inverse)
|
||||||
|
(not (gmt/valid-matrix? (:transform-inverse shape))))
|
||||||
|
(assoc :transform-inverse (gmt/matrix))
|
||||||
|
|
||||||
;; Fix broken fills
|
;; Fix broken fills
|
||||||
(seq (:fills shape))
|
(seq (:fills shape))
|
||||||
(update :fills (fn [fills] (filterv valid-fill? fills)))
|
(update :fills (fn [fills] (filterv valid-fill? fills)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user