Samsung / rlottie

A platform independent standalone library that plays Lottie Animation.
Other
1.15k stars 223 forks source link

totalFrame() is one frame less #527

Open mmaciola opened 2 years ago

mmaciola commented 2 years ago

totalFrame() returns one frame less than should. It returns the id of the last frame (equal to "op" Out Point), not the total amout of frames. Comparing to https://lottiefiles.com/tools/json-editor resources are always one frame shorter and different in progress (the same distance in pixels is one frame less, so there is always a small difference in the rendered view).