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
parent f2b6b44bce
commit 25ea242d38
2 changed files with 0 additions and 7 deletions

Binary file not shown.

View file

@ -378,13 +378,6 @@ TvgBinCounter TvgSaver::serializeScene(const Scene* scene, const Matrix* pTransf
it->begin(); 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, false);
delete(it);
return ret;
}
//Case - Serialize Scene & its children //Case - Serialize Scene & its children
writeTag(TVG_TAG_CLASS_SCENE); writeTag(TVG_TAG_CLASS_SCENE);
reserveCount(); reserveCount();