mirror of
https://github.com/penpot/penpot.git
synced 2026-06-01 05:00:17 +00:00
Merge pull request #8582 from penpot/niwinz-staging-bugfix-path-plain-content
🐛 Fix plain vector leaking into shape :content from shape-to-path
This commit is contained in:
commit
1487386fbb
@ -777,7 +777,7 @@
|
|||||||
content as PathData instance."
|
content as PathData instance."
|
||||||
[content transform]
|
[content transform]
|
||||||
(if (some? transform)
|
(if (some? transform)
|
||||||
(impl/-transform content transform)
|
(impl/-transform (impl/path-data content) transform)
|
||||||
content))
|
content))
|
||||||
|
|
||||||
(defn move-content
|
(defn move-content
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
child-as-paths)]
|
child-as-paths)]
|
||||||
(-> group
|
(-> group
|
||||||
(assoc :type :path)
|
(assoc :type :path)
|
||||||
(assoc :content content)
|
(assoc :content (path.impl/path-data content))
|
||||||
(merge head-data)
|
(merge head-data)
|
||||||
(d/without-keys dissoc-attrs))))
|
(d/without-keys dissoc-attrs))))
|
||||||
|
|
||||||
@ -184,7 +184,8 @@
|
|||||||
(:bool-type shape)
|
(:bool-type shape)
|
||||||
|
|
||||||
content
|
content
|
||||||
(bool/calculate-content bool-type (map :content children))]
|
(-> (bool/calculate-content bool-type (map :content children))
|
||||||
|
(path.impl/path-data))]
|
||||||
|
|
||||||
(-> shape
|
(-> shape
|
||||||
(assoc :type :path)
|
(assoc :type :path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user