Skip to content
Snippets Groups Projects
Commit 2c0cfd91 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-3859 Remade to account from smoothed looping

parent af3bf74e
No related branches found
No related tags found
No related merge requests found
...@@ -138,12 +138,16 @@ S32 LLViewerTextureAnim::animateTextures(F32 &off_s, F32 &off_t, ...@@ -138,12 +138,16 @@ S32 LLViewerTextureAnim::animateTextures(F32 &off_s, F32 &off_t,
{ {
frame_counter = fmod(frame_counter, full_length); frame_counter = fmod(frame_counter, full_length);
} }
else
frame_counter = llmin(full_length - 1.f, frame_counter); {
frame_counter = llmin(full_length - 1.f, frame_counter);
}
if (!(mMode & SMOOTH)) if (!(mMode & SMOOTH))
{ {
frame_counter = (F32)llfloor(frame_counter + 0.01f); frame_counter = (F32)llfloor(frame_counter + 0.01f);
// account for 0.01, we shouldn't step over full length
frame_counter = llmin(full_length - 1.f, frame_counter);
} }
if (mMode & PING_PONG) if (mMode & PING_PONG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment