From b0dc625b185b8d21a4808806790d36eafcec5eb2 Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 22 Aug 2016 23:03:26 +0200 Subject: [PATCH] Run setLoopingEnabled after the anim queue is updated --- apps/openmw/mwmechanics/character.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 873d3ce7e..319e3074f 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -1539,6 +1539,9 @@ void CharacterController::updateAnimQueue() 1.0f, "start", "stop", 0.0f, mAnimQueue.front().mLoopCount, loopfallback); } } + + if(!mAnimQueue.empty()) + mAnimation->setLoopingEnabled(mAnimQueue.front().mGroup, mAnimQueue.size() <= 1); } void CharacterController::update(float duration) @@ -1550,9 +1553,6 @@ void CharacterController::update(float duration) updateMagicEffects(); - if(!mAnimQueue.empty()) - mAnimation->setLoopingEnabled(mAnimQueue.front().mGroup, mAnimQueue.size() <= 1); - if(!cls.isActor()) updateAnimQueue(); else if(!cls.getCreatureStats(mPtr).isDead())