🐛 Fix black background while drawing a path

This commit is contained in:
Alejandro Alonso 2022-04-21 14:16:44 +02:00 committed by Alonso Torres
parent 202e7eb3f2
commit 9856da4a1f
2 changed files with 9 additions and 3 deletions

View file

@ -382,6 +382,14 @@
(some? style)
(obj/set! "style" style)))
(and (= :path (:type shape)) (empty? (:fills shape)))
(let [style
(-> (obj/get props "style")
(obj/clone)
(obj/set! "fill" "none"))]
(-> props
(obj/set! "style" style)))
:else
props)))