Fix the Eyedropper tool on web with Vello and on desktop with SVG (#3886)

This commit is contained in:
Keavon Chambers
2026-03-11 03:26:02 -07:00
committed by GitHub
parent 116a4106c4
commit 81d0b8b8d4
5 changed files with 42 additions and 28 deletions

View File

@@ -309,6 +309,10 @@ impl NodeRuntime {
self.sender.send_eyedropper_preview(raster_cpu);
continue;
}
// Eyedropper render that didn't produce a texture (e.g., SVG fallback when GPU is unavailable); discard it
_ if render_config.for_eyedropper => {
continue;
}
#[cfg(all(target_family = "wasm", feature = "gpu"))]
Ok(TaggedValue::RenderOutput(RenderOutput {
data: RenderOutputType::Texture(image_texture),