mirror of
https://github.com/penpot/penpot.git
synced 2026-05-09 10:08:54 +00:00
Merge pull request #6756 from penpot/superalex-fix-empty-fills
🐛 Fix empty fills
This commit is contained in:
commit
21fd56076c
@ -245,7 +245,8 @@
|
||||
|
||||
(defn set-shape-fills
|
||||
[shape-id fills]
|
||||
(when (not-empty? fills)
|
||||
(if (empty? fills)
|
||||
(h/call wasm/internal-module "_clear_shape_fills")
|
||||
(let [fills (take types.fill/MAX-FILLS fills)
|
||||
image-fills (filter :fill-image fills)
|
||||
offset (mem/alloc-bytes (* (count fills) sr-fills/FILL-BYTE-SIZE))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user