mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Merge pull request #3860 from penpot/superalex-fix-code-gen-when-just-one-fill
🐛 Fix code gen when just one fill
This commit is contained in:
commit
a9fc46f7e6
1 changed files with 3 additions and 2 deletions
|
@ -146,8 +146,9 @@
|
||||||
|
|
||||||
(defmethod get-value :background
|
(defmethod get-value :background
|
||||||
[_ {:keys [fills] :as shape} _]
|
[_ {:keys [fills] :as shape} _]
|
||||||
(when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape)))
|
(let [single-fill? (= (count fills) 1)]
|
||||||
(fill->color (first fills))))
|
(when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape)) single-fill?)
|
||||||
|
(fill->color (first fills)))))
|
||||||
|
|
||||||
(defn get-stroke-data
|
(defn get-stroke-data
|
||||||
[stroke]
|
[stroke]
|
||||||
|
|
Loading…
Add table
Reference in a new issue