lottie: maxAmount support in the text range selector

@issue: #2178
This commit is contained in:
Mira Grudzinska 2024-10-31 10:32:25 +07:00 committed by Hermet Park
parent 84c7551c9b
commit 88a19b06f9

View file

@ -148,7 +148,7 @@ float LottieTextRange::factor(float frameNo, float totalLen, float idx)
clamp(f, 0.0f, 1.0f); clamp(f, 0.0f, 1.0f);
} }
return f; return f * this->maxAmount(frameNo) * 0.01f;
} }