On line 114 of CAnimatedMeshSceneNode.cpp,
Code: Select all
else if (Looping)
{
// play animation looped
CurrentFrameNr += timeMs * FramesPerSecond;
if (FramesPerSecond > 0.f) //forwards...
{
if (CurrentFrameNr > EndFrame)
CurrentFrameNr -= (EndFrame-StartFrame);
}
else //backwards...
{
if (CurrentFrameNr < StartFrame)
CurrentFrameNr += (EndFrame-StartFrame);
}
Code: Select all
else if (Looping)
{
// play animation looped
CurrentFrameNr += timeMs * FramesPerSecond;
if (FramesPerSecond > 0.f) //forwards...
{
while (CurrentFrameNr > EndFrame)
CurrentFrameNr -= (EndFrame-StartFrame);
}
else //backwards...
{
while (CurrentFrameNr < StartFrame)
CurrentFrameNr += (EndFrame-StartFrame);
}