Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Render: the drag budget for shadows returns None, as the cached-shadow path does since #2395 (#2745)

bflatastic6e29afe64819
diff --git a/crates/render/src/fx.rs b/crates/render/src/fx.rs
index ce155a598..87ba4e1c2 100644
--- a/crates/render/src/fx.rs
+++ b/crates/render/src/fx.rs
@@ -1069,7 +1069,7 @@ impl Renderer {
// During a drag, a larger shadow on a multithreaded context is filtered within the
// drag's budget (`with_filters`), and no raster is kept.
if f.opts.dragging && f.mt && w * h > DRAG_PIXEL_BUDGET {
- return false;
+ return None;
}
let (w, h) = (w as u16, h as u16);
// Silhouette (the object's painted alpha, and its colors under Darkness), offset by