1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 10:53:54 +00:00

Don't update the animation if time is the same

This commit is contained in:
Chris Robinson 2013-01-16 21:39:14 -08:00
parent 7ee389f3b2
commit 82d549e22f

View file

@ -119,6 +119,8 @@ void Animation::setController(MWMechanics::CharacterController *controller)
void Animation::updatePosition(float time)
{
if(time == mTime)
return;
mCurGroup.mAnimState->setTimePosition(time);
mTime = time;