mirror of
https://github.com/penpot/penpot.git
synced 2025-05-26 01:26:11 +02: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))
|
(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…
Add table
Add a link
Reference in a new issue