Do not update animation state for dead actors

0.6.3
Andrei Kortunov 7 years ago
parent 977a27ecb7
commit 427be928d0

@ -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…
Cancel
Save