mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Improve setting svg attrs in wasm
This commit is contained in:
committed by
Alonso Torres
parent
dba718b850
commit
479ce99b32
@@ -764,14 +764,9 @@ impl RenderState {
|
||||
&shape
|
||||
};
|
||||
|
||||
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
|
||||
&& !shape.svg_attrs.fill_none
|
||||
{
|
||||
if let Some(fills_to_render) = self.nested_fills.last() {
|
||||
let fills_to_render = fills_to_render.clone();
|
||||
|
||||
Reference in New Issue
Block a user