mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
fix: skia loses the fill type after a rewind (#9741) 8f5a30ac7c
Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
3ab91e096d9d27a5b8f4cc50737a70eef25d2558
|
||||
8f5a30ac7c58feaf1cf9fe21bdd507d304cfc591
|
||||
|
||||
@@ -126,7 +126,12 @@ void SkiaRenderPath::fillRule(FillRule value)
|
||||
m_Path.setFillType(ToSkia::convert(value));
|
||||
}
|
||||
|
||||
void SkiaRenderPath::rewind() { m_Path.rewind(); }
|
||||
void SkiaRenderPath::rewind()
|
||||
{
|
||||
auto fillType = m_Path.getFillType();
|
||||
m_Path.rewind();
|
||||
m_Path.setFillType(fillType);
|
||||
}
|
||||
void SkiaRenderPath::addRenderPath(RenderPath* path, const Mat2D& transform)
|
||||
{
|
||||
LITE_RTTI_CAST_OR_RETURN(skPath, SkiaRenderPath*, path);
|
||||
|
||||
Reference in New Issue
Block a user