mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-02 04:45:34 +00:00
Don't update the animation if time is the same
This commit is contained in:
parent
7ee389f3b2
commit
82d549e22f
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ void Animation::setController(MWMechanics::CharacterController *controller)
|
||||||
|
|
||||||
void Animation::updatePosition(float time)
|
void Animation::updatePosition(float time)
|
||||||
{
|
{
|
||||||
|
if(time == mTime)
|
||||||
|
return;
|
||||||
mCurGroup.mAnimState->setTimePosition(time);
|
mCurGroup.mAnimState->setTimePosition(time);
|
||||||
mTime = time;
|
mTime = time;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue