0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-24 07:46:13 -05:00

🐛 Fix frame components lost fill when migrated to v2

This commit is contained in:
Andrés Moya 2023-05-29 12:48:50 +02:00 committed by Alonso Torres
parent eeaee5fd13
commit 63e920828b

View file

@ -333,6 +333,7 @@
(if (empty? components)
(assoc-in file-data [:options :components-v2] true)
(let [grid-gap 50
[file-data page-id start-pos]
(get-or-add-library-page file-data grid-gap)
@ -349,7 +350,6 @@
{:main-instance? true
:force-frame-id uuid/zero
:keep-ids? true})
add-shapes
(fn [page]
(reduce (fn [page shape]
@ -394,9 +394,10 @@
root-to-board
(fn [shape]
(cond-> shape
(and (ctk/instance-root? shape)
(cph/frame-shape? shape))
(assoc :fills []
(and (ctk/instance-head? shape)
(not (cph/frame-shape? shape)))
(assoc :type :frame
:fills []
:hide-in-viewer true
:rx 0
:ry 0)))