lottie: do not try matting if the layer has no contents

This commit is contained in:
Hermet Park 2025-06-09 21:57:08 +09:00 committed by Mira Grudzinska
parent 5262726b04
commit 081cb8cad3

View file

@ -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);