mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 09:31:26 -05: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))
|
||||
|
||||
(contains? attrs :opacity)
|
||||
(assoc :stroke-opacity (:opacity attrs))
|
||||
|
||||
:always
|
||||
(d/without-nils))
|
||||
(assoc :stroke-opacity (:opacity attrs)))
|
||||
|
||||
attrs (merge attrs color-attrs)]
|
||||
|
||||
|
@ -276,7 +273,10 @@
|
|||
(assoc :stroke-style :solid)
|
||||
|
||||
(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)))))))))
|
||||
|
||||
(defn add-stroke
|
||||
|
|
Loading…
Add table
Reference in a new issue