mirror of
https://github.com/penpot/penpot.git
synced 2026-05-11 02:58:25 +00:00
🐛 Fix path with images on binfile importation
This commit is contained in:
parent
1b42e324a2
commit
c1348189d4
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user