mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 06:34:01 +00:00
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:
parent
9109a62819
commit
a14a105acd
1 changed files with 0 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue