mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
renderer: Fix paint transformation on scene change
issue: https://github.com/thorvg/thorvg/issues/2958
This commit is contained in:
parent
96e8d3d7a2
commit
a67f30de65
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@ Result Scene::push(Paint* paint) noexcept
|
|||
{
|
||||
if (!paint) return Result::InvalidArguments;
|
||||
paint->ref();
|
||||
|
||||
//Relocated the paint to the current scene space
|
||||
P(paint)->renderFlag |= RenderUpdateFlag::Transform;
|
||||
|
||||
pImpl->paints.push_back(paint);
|
||||
|
||||
return Result::Success;
|
||||
|
|
Loading…
Add table
Reference in a new issue