saver/tvg: removed an unstable condition.

this optimization breaks the scene composition, remove it.

Issue: https://github.com/thorvg/thorvg/issues/1750
This commit is contained in:
Hermet Park 2024-01-03 16:21:15 +09:00 committed by Hermet Park
parent 3896d21c3a
commit 7dd709b4b8
2 changed files with 0 additions and 7 deletions

Binary file not shown.

View file

@ -376,13 +376,6 @@ TvgBinCounter TvgSaver::serializeScene(const Scene* scene, const Matrix* pTransf
it->begin();
//Case - Delegator Scene: This scene is just a delegator, we can skip this:
if (scene->composite(nullptr) == CompositeMethod::None && scene->opacity() == 255) {
auto ret = serializeChildren(it, cTransform);
delete(it);
return ret;
}
//Case - Serialize Scene & its children
writeTag(TVG_TAG_CLASS_SCENE);
reserveCount();