mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 17:37:18 +02:00
Merge pull request #6773 from penpot/niwinz-staging-paste-regression
🐛 Fix minor regression on paste shapes with fill-image
This commit is contained in:
commit
1b67be2f36
1 changed files with 2 additions and 8 deletions
|
@ -679,14 +679,8 @@
|
||||||
mobj (get media-idx id)]
|
mobj (get media-idx id)]
|
||||||
(if mobj
|
(if mobj
|
||||||
(if (empty? attr-path)
|
(if (empty? attr-path)
|
||||||
(-> mdata
|
(assoc mdata :id (:id mobj))
|
||||||
(assoc :id (:id mobj))
|
(update-in mdata attr-path assoc :id (:id mobj)))
|
||||||
(assoc :path (:path mobj)))
|
|
||||||
(update-in mdata attr-path (fn [value]
|
|
||||||
(-> value
|
|
||||||
(assoc :id (:id mobj))
|
|
||||||
(assoc :path (:path mobj))))))
|
|
||||||
|
|
||||||
mdata)))
|
mdata)))
|
||||||
|
|
||||||
(add-obj? [chg]
|
(add-obj? [chg]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue