lottie: Corrected the Time Remapping Range (#1907)

enable exceeding the range of normalized values in time remapping.

the issue came from a misunderstanding of the lottie spec.

issue: https://github.com/thorvg/thorvg/issues/1809
This commit is contained in:
Hermet Park 2024-01-12 18:19:23 +09:00 committed by GitHub
parent 9109a62819
commit a14a105acd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -598,7 +598,6 @@ struct LottieComposition
{
auto p = timeInSec / duration();
if (p < 0.0f) p = 0.0f;
else if (p > 1.0f) p = 1.0f;
return p * frameCnt();
}