🐛 Fix shapes without fills contained in a group with fills

This commit is contained in:
Alejandro Alonso 2025-06-06 08:22:25 +02:00
parent fec7d5cff2
commit a9702f104d
3 changed files with 32 additions and 5 deletions

View file

@ -135,6 +135,9 @@ pub fn render(render_state: &mut RenderState, shape: &Shape, fill: &Fill, antial
.surfaces
.draw_path_to(SurfaceId::Fills, shape, paint);
}
(_, Type::Group(_)) => {
// Groups can have fills but they propagate them to their children
}
(_, _) => {
unreachable!("This shape should not have fills")
}