diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 3963913fbc..a702685b1e 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -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))