🐛 Weird stroke behaviour on duplicate

This commit is contained in:
Alejandro Alonso 2022-03-29 10:33:06 +02:00 committed by Andrés Moya
parent 369eab3b5f
commit 91249bc892

View file

@ -259,10 +259,7 @@
(assoc :stroke-color-gradient (:gradient attrs)) (assoc :stroke-color-gradient (:gradient attrs))
(contains? attrs :opacity) (contains? attrs :opacity)
(assoc :stroke-opacity (:opacity attrs)) (assoc :stroke-opacity (:opacity attrs)))
:always
(d/without-nils))
attrs (merge attrs color-attrs)] attrs (merge attrs color-attrs)]
@ -276,7 +273,10 @@
(assoc :stroke-style :solid) (assoc :stroke-style :solid)
(not (contains? new-attrs :stroke-alignment)) (not (contains? new-attrs :stroke-alignment))
(assoc :stroke-alignment :center))] (assoc :stroke-alignment :center)
:always
(d/without-nils))]
(assoc-in shape [:strokes index] new-attrs))))))))) (assoc-in shape [:strokes index] new-attrs)))))))))
(defn add-stroke (defn add-stroke