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:
Hermet Park 2025-03-26 20:08:49 +09:00
parent fba861cb4f
commit e5d55d0651

View file

@ -1439,7 +1439,6 @@ void LottieBuilder::updateLayer(LottieComposition* comp, Scene* scene, LottieLay
updateEffect(layer, frameNo);
//the given matte source was composited by the target earlier.
if (!layer->matteSrc) scene->push(layer->scene);
}
@ -1529,6 +1528,7 @@ static bool _buildComposition(LottieComposition* comp, LottieLayer* parent)
}
if (child->matteTarget) {
child->matteTarget->matteSrc = true;
//parenting
_buildHierarchy(parent, child->matteTarget);
//precomp referencing