svgloader: fillRule value passed to the shape

The value was loadeed but not set to the shape.
This commit is contained in:
Mira Grudzinska 2021-03-02 15:17:25 +01:00 committed by JunsuChoi
parent 692e100f9a
commit d03db583e5

View file

@ -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);