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 76206a174e
commit d37ab3b39f

View file

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