mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
renderer: Fix paint transformation on scene change
issue: https://github.com/thorvg/thorvg/issues/2958
This commit is contained in:
parent
9869855640
commit
8daf0b7b94
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ Result Scene::push(unique_ptr<Paint> paint) noexcept
|
|||
{
|
||||
auto p = paint.release();
|
||||
if (!p) return Result::MemoryCorruption;
|
||||
PP(p)->ref();
|
||||
P(p)->ref();
|
||||
|
||||
//Relocated the paint to the current scene space
|
||||
P(p)->renderFlag |= RenderUpdateFlag::Transform;
|
||||
|
||||
pImpl->paints.push_back(p);
|
||||
|
||||
return Result::Success;
|
||||
|
|
Loading…
Add table
Reference in a new issue