mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
🐛 Fix invalid transforms on comp-v2 migration
This commit is contained in:
parent
9eb902c682
commit
04fd4e12d7
1 changed files with 8 additions and 0 deletions
|
@ -449,6 +449,14 @@
|
|||
(some? (:main-instance shape))
|
||||
(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
|
||||
(seq (:fills shape))
|
||||
(update :fills (fn [fills] (filterv valid-fill? fills)))
|
||||
|
|
Loading…
Add table
Reference in a new issue