mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +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
f2b6b44bce
commit
25ea242d38
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.
|
@ -378,13 +378,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, false);
|
||||
delete(it);
|
||||
return ret;
|
||||
}
|
||||
|
||||
//Case - Serialize Scene & its children
|
||||
writeTag(TVG_TAG_CLASS_SCENE);
|
||||
reserveCount();
|
||||
|
|
Loading…
Add table
Reference in a new issue