mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 12:41:01 +00:00
Do not update animation state for dead actors
This commit is contained in:
parent
977a27ecb7
commit
427be928d0
@ -845,8 +845,8 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
|||||||
mIdleState = CharState_Idle;
|
mIdleState = CharState_Idle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not update animation status for dead actors
|
||||||
if(mDeathState == CharState_None)
|
if(mDeathState == CharState_None && !cls.getCreatureStats(mPtr).isDead())
|
||||||
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
|
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
|
||||||
|
|
||||||
mAnimation->runAnimation(0.f);
|
mAnimation->runAnimation(0.f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user