mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 14:08:29 +02:00
🐛 Weird stroke behaviour on duplicate
This commit is contained in:
parent
369eab3b5f
commit
91249bc892
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue