mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-23 14:48:24 +00:00
lottie: do not try matting if the layer has no contents
This commit is contained in:
parent
a2f9b30c58
commit
1e75f2fe7f
1 changed files with 1 additions and 1 deletions
|
@ -1311,7 +1311,7 @@ void LottieBuilder::updateMasks(LottieLayer* layer, float frameNo)
|
|||
bool LottieBuilder::updateMatte(LottieComposition* comp, float frameNo, Scene* scene, LottieLayer* layer)
|
||||
{
|
||||
auto target = layer->matteTarget;
|
||||
if (!target) return true;
|
||||
if (!target || target->type == LottieLayer::Null) return true;
|
||||
|
||||
updateLayer(comp, scene, target, frameNo);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue