mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 08:46:12 +02:00
♻️ Remove redundant calls to add_shape_fill
This commit is contained in:
parent
6323031b40
commit
8f9298fac8
1 changed files with 3 additions and 11 deletions
|
@ -224,13 +224,9 @@
|
|||
(h/call wasm/internal-module "_add_shape_fill"))
|
||||
|
||||
(some? gradient)
|
||||
(let [_ nil]
|
||||
(do
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
(case (:type gradient)
|
||||
:linear
|
||||
(h/call wasm/internal-module "_add_shape_fill")
|
||||
:radial
|
||||
(h/call wasm/internal-module "_add_shape_fill")))
|
||||
(h/call wasm/internal-module "_add_shape_fill"))
|
||||
|
||||
(some? image)
|
||||
(let [id (dm/get-prop image :id)
|
||||
|
@ -266,11 +262,7 @@
|
|||
(some? gradient)
|
||||
(let [_ nil]
|
||||
(sr-fills/write-gradient-fill! offset heap gradient opacity)
|
||||
(case (:type gradient)
|
||||
:linear
|
||||
(h/call wasm/internal-module "_add_shape_stroke_fill")
|
||||
:radial
|
||||
(h/call wasm/internal-module "_add_shape_stroke_fill")))
|
||||
(h/call wasm/internal-module "_add_shape_stroke_fill"))
|
||||
|
||||
(some? image)
|
||||
(let [id (dm/get-prop image :id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue