mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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
7d8bb168d2
commit
4e5ff3ea9a
1 changed files with 1 additions and 1 deletions
|
@ -1510,7 +1510,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(cast(layer->scene));
|
||||
}
|
||||
|
||||
|
@ -1600,6 +1599,7 @@ static bool _buildComposition(LottieComposition* comp, LottieLayer* parent)
|
|||
}
|
||||
|
||||
if (child->matteTarget) {
|
||||
child->matteTarget->matteSrc = true;
|
||||
//parenting
|
||||
_buildHierarchy(parent, child->matteTarget);
|
||||
//precomp referencing
|
||||
|
|
Loading…
Add table
Reference in a new issue