mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 18:17:27 +02:00
🐛 Fix set-shape-fills serialization (wasm renderer)
This commit is contained in:
parent
a2abaea637
commit
ca24e23775
1 changed files with 4 additions and 4 deletions
|
@ -249,11 +249,11 @@
|
||||||
|
|
||||||
;; write fill data to heap
|
;; write fill data to heap
|
||||||
(loop [fills (seq fills)
|
(loop [fills (seq fills)
|
||||||
current-offset 0]
|
current-offset offset]
|
||||||
(when-not (empty? fills)
|
(when-not (empty? fills)
|
||||||
(let [fill (first fills)]
|
(let [fill (first fills)
|
||||||
(sr-fills/write-fill! offset dview fill)
|
new-offset (sr-fills/write-fill! current-offset dview fill)]
|
||||||
(recur (rest fills) (+ current-offset sr-fills/FILL-BYTE-SIZE)))))
|
(recur (rest fills) new-offset))))
|
||||||
|
|
||||||
;; send fills to wasm
|
;; send fills to wasm
|
||||||
(h/call wasm/internal-module "_set_shape_fills")
|
(h/call wasm/internal-module "_set_shape_fills")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue