mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 05:37:16 +02:00
🐛 Fix group fills propagation when fill is none
This commit is contained in:
parent
1bb6f2754c
commit
81d2b9a82e
1 changed files with 9 additions and 1 deletions
|
@ -449,7 +449,15 @@ impl RenderState {
|
|||
s.canvas().concat(&matrix);
|
||||
});
|
||||
|
||||
if shape.fills.is_empty() && !matches!(shape.shape_type, Type::Group(_)) {
|
||||
let has_fill_none = matches!(
|
||||
shape.svg_attrs.get("fill").map(String::as_str),
|
||||
Some("none")
|
||||
);
|
||||
|
||||
if shape.fills.is_empty()
|
||||
&& !matches!(shape.shape_type, Type::Group(_))
|
||||
&& !has_fill_none
|
||||
{
|
||||
if let Some(fills_to_render) = self.nested_fills.last() {
|
||||
let fills_to_render = fills_to_render.clone();
|
||||
for fill in fills_to_render.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue