mirror of
https://github.com/penpot/penpot.git
synced 2025-02-09 16:48:16 -05:00
🐛 Importing shapes without fills
This commit is contained in:
parent
6550631003
commit
10b147a25d
1 changed files with 9 additions and 8 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(ns app.main.ui.shapes.attrs
|
(ns app.main.ui.shapes.attrs
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.data :as d]
|
||||||
[app.common.spec.radius :as ctr]
|
[app.common.spec.radius :as ctr]
|
||||||
[app.common.spec.shape :refer [stroke-caps-line stroke-caps-marker]]
|
[app.common.spec.shape :refer [stroke-caps-line stroke-caps-marker]]
|
||||||
[app.main.ui.context :as muc]
|
[app.main.ui.context :as muc]
|
||||||
|
@ -210,7 +211,7 @@
|
||||||
(obj/set! "fillOpacity" (obj/get svg-styles "fillOpacity")))
|
(obj/set! "fillOpacity" (obj/get svg-styles "fillOpacity")))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(add-fill styles (get-in shape [:fills 0]) render-id 0))]
|
(add-fill styles (d/without-nils (get-in shape [:fills 0])) render-id 0))]
|
||||||
|
|
||||||
(-> props
|
(-> props
|
||||||
(obj/merge! svg-attrs)
|
(obj/merge! svg-attrs)
|
||||||
|
|
Loading…
Add table
Reference in a new issue