🐛 Avoid opaque fill check in drag crop cache hot path

This commit is contained in:
Alejandro Alonso 2026-05-06 19:15:00 +02:00
parent c36887e0bf
commit 33396df2e2

View File

@ -1411,16 +1411,10 @@ impl Shape {
}
}
let has_opaque_fill = self
.fills
.iter()
.any(|f| math::is_close_to(f.opacity(), 1.0));
self.blur.is_none()
&& self.shadows.is_empty()
&& (self.opacity - 1.0).abs() <= 1e-4
&& self.blend_mode().0 == skia::BlendMode::SrcOver
&& has_opaque_fill
}
/// Fill + visible strokes in **document space** for clipping interactive drag textures.