lottie: fixed a regression bug of a weird artififact observation

this reverts a logic that was introduced by
https://github.com/thorvg/thorvg/pull/3167

this logic change was not necessary thus revert it.
This commit is contained in:
Hermet Park 2025-02-24 15:47:09 +09:00
parent 5b30e2ad65
commit 66a30b2c50

View file

@ -130,7 +130,7 @@ static bool _updateTransform(LottieTransform* transform, float frameNo, Matrix&
translateR(&matrix, -transform->anchor(frameNo, tween, exps)); translateR(&matrix, -transform->anchor(frameNo, tween, exps));
//invisible just in case. //invisible just in case.
if (tvg::zero(scale)) opacity = 0; if (scale.x == 0.0f || scale.y == 0.0f) opacity = 0;
else opacity = transform->opacity(frameNo, tween, exps); else opacity = transform->opacity(frameNo, tween, exps);
return true; return true;