mirror of
https://github.com/penpot/penpot.git
synced 2026-09-16 08:59:35 +00:00
🐛 Restart progressive render on canvas background change (#11643)
Cancel Partial/ViewportReady before invalidating tiles so a mid-flight pass does not leave background-only holes. Closes #11642.
This commit is contained in:
parent
3adf9ade14
commit
87e5ffdf94
@ -2211,6 +2211,10 @@
|
|||||||
[background]
|
[background]
|
||||||
(when (initialized?)
|
(when (initialized?)
|
||||||
(let [rgba (sr-clr/hex->u32argb background 1)]
|
(let [rgba (sr-clr/hex->u32argb background 1)]
|
||||||
|
;; Background is baked into every tile. Cancel Partial/ViewportReady so we
|
||||||
|
;; do not continue a progressive pass whose tile cache was just cleared —
|
||||||
|
;; that drops already-finished tiles from the queue and leaves bg-only holes.
|
||||||
|
(stop-progressive-render!)
|
||||||
(h/call wasm/internal-module "_set_canvas_background" rgba)
|
(h/call wasm/internal-module "_set_canvas_background" rgba)
|
||||||
(request-render "set-canvas-background"))))
|
(request-render "set-canvas-background"))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user