1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-23 23:09:44 +00:00

Update idle if current idle finishes playing

This commit is contained in:
Allofich 2016-08-25 21:35:03 +09:00
parent f4cc5d0399
commit 6190ff1f0d

View file

@ -468,7 +468,8 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
void CharacterController::refreshIdleAnims(const WeaponInfo* weap, CharacterState idle, bool force)
{
if(force || idle != mIdleState)
if(force || idle != mIdleState ||
((idle == mIdleState) && !mAnimation->isPlaying(mCurrentIdle) && mAnimQueue.empty()))
{
mIdleState = idle;
size_t numLoops = ~0ul;