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:
parent
f4cc5d0399
commit
6190ff1f0d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue