0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix path with images on binfile importation

This commit is contained in:
Andrey Antukh 2022-08-23 08:43:06 +02:00 committed by Andrés Moya
parent 1b42e324a2
commit c1348189d4

View file

@ -728,11 +728,16 @@
[data]
(letfn [(process-map-form [form]
(cond-> form
;; Relink Image Shapes
;; Relink image shapes
(and (map? (:metadata form))
(= :image (:type form)))
(update-in [:metadata :id] lookup-index)
;; Relink paths with fill image
(and (map? (:fill-image form))
(= :path (:type form)))
(update-in [:fill-image :id] lookup-index)
;; This covers old shapes and the new :fills.
(uuid? (:fill-color-ref-file form))
(update :fill-color-ref-file lookup-index)