mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 22:47:30 +02:00
🐛 Fix shapes without fills contained in a group with fills
This commit is contained in:
parent
fec7d5cff2
commit
a9702f104d
3 changed files with 32 additions and 5 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue