mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-28 17:15:57 +00:00
svgloader: fillRule value passed to the shape
The value was loadeed but not set to the shape.
This commit is contained in:
parent
692e100f9a
commit
d03db583e5
1 changed files with 3 additions and 0 deletions
|
@ -233,6 +233,9 @@ void _applyProperty(SvgNode* node, Shape* vg, float vx, float vy, float vw, floa
|
|||
vg->fill(style->fill.paint.r, style->fill.paint.g, style->fill.paint.b, style->fill.opacity);
|
||||
}
|
||||
|
||||
//Apply the fill rule
|
||||
vg->fill((tvg::FillRule)style->fill.fillRule);
|
||||
|
||||
//Apply node opacity
|
||||
if (style->opacity < 255) vg->opacity(style->opacity);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue