mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
Do not update animation state for dead actors
This commit is contained in:
parent
977a27ecb7
commit
427be928d0
1 changed files with 2 additions and 2 deletions
|
@ -845,8 +845,8 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
|||
mIdleState = CharState_Idle;
|
||||
}
|
||||
|
||||
|
||||
if(mDeathState == CharState_None)
|
||||
// Do not update animation status for dead actors
|
||||
if(mDeathState == CharState_None && !cls.getCreatureStats(mPtr).isDead())
|
||||
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
|
||||
|
||||
mAnimation->runAnimation(0.f);
|
||||
|
|
Loading…
Reference in a new issue