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
parent d761e3c562
commit 5d9f8c36a2

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();
}