mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
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:
parent
3896d21c3a
commit
7dd709b4b8
2 changed files with 0 additions and 7 deletions
BIN
src/examples/resources/masking.tvg
Normal file
BIN
src/examples/resources/masking.tvg
Normal file
Binary file not shown.
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue