mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
lottie: safety++
Don't apply matte — it's already been pushed into the scene. This is a corner-case bug that occurs when the Lottie data violates the specification.
This commit is contained in:
parent
fba861cb4f
commit
e5d55d0651
1 changed files with 1 additions and 1 deletions
|
@ -1439,7 +1439,6 @@ void LottieBuilder::updateLayer(LottieComposition* comp, Scene* scene, LottieLay
|
||||||
|
|
||||||
updateEffect(layer, frameNo);
|
updateEffect(layer, frameNo);
|
||||||
|
|
||||||
//the given matte source was composited by the target earlier.
|
|
||||||
if (!layer->matteSrc) scene->push(layer->scene);
|
if (!layer->matteSrc) scene->push(layer->scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1529,6 +1528,7 @@ static bool _buildComposition(LottieComposition* comp, LottieLayer* parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (child->matteTarget) {
|
if (child->matteTarget) {
|
||||||
|
child->matteTarget->matteSrc = true;
|
||||||
//parenting
|
//parenting
|
||||||
_buildHierarchy(parent, child->matteTarget);
|
_buildHierarchy(parent, child->matteTarget);
|
||||||
//precomp referencing
|
//precomp referencing
|
||||||
|
|
Loading…
Add table
Reference in a new issue