🐛 Fix problem with thumbnail generation

This commit is contained in:
alonso.torres 2026-01-19 12:54:15 +01:00
parent 89f40dcda2
commit 2c1cc89f53
2 changed files with 4 additions and 2 deletions

View File

@ -1031,8 +1031,9 @@
(perf/end-measure "set-objects") (perf/end-measure "set-objects")
(process-pending shapes thumbnails full noop-fn (process-pending shapes thumbnails full noop-fn
(fn [] (fn []
(when render-callback (render-callback)) (if render-callback
(render-finish) (render-callback)
(render-finish))
(ug/dispatch! (ug/event "penpot:wasm:set-objects"))))))) (ug/dispatch! (ug/event "penpot:wasm:set-objects")))))))
(defn clear-focus-mode (defn clear-focus-mode

View File

@ -179,6 +179,7 @@
(->> (render-canvas-blob canvas width height bgcolor) (->> (render-canvas-blob canvas width height bgcolor)
(p/fnly (fn [data cause] (p/fnly (fn [data cause]
(wasm.api/clear-canvas)
(if cause (if cause
(rx/error! subs cause) (rx/error! subs cause)
(rx/push! subs (rx/push! subs