mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
commit
3233c78130
1 changed files with 9 additions and 7 deletions
|
@ -983,10 +983,12 @@
|
||||||
|
|
||||||
(defn open-path?
|
(defn open-path?
|
||||||
[shape]
|
[shape]
|
||||||
|
(let [svg? (contains? shape :svg-attrs)
|
||||||
|
;; No close subpaths for svgs imported
|
||||||
|
maybe-close (if svg? identity sp/close-subpaths)]
|
||||||
(and (= :path (:type shape))
|
(and (= :path (:type shape))
|
||||||
(not (->> shape
|
(not (->> shape
|
||||||
:content
|
:content
|
||||||
(sp/close-subpaths)
|
(maybe-close)
|
||||||
(sp/get-subpaths)
|
(sp/get-subpaths)
|
||||||
(every? sp/is-closed?)))))
|
(every? sp/is-closed?))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue