mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Don't clear idle animation when movement ends (Bug #3581)
This caused problems when AiWander tried to start an idle animation in the frame after movement stops.
This commit is contained in:
parent
c611ddba8d
commit
a5d7b36c28
@ -364,9 +364,11 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
||||
{
|
||||
if(force || movement != mMovementState)
|
||||
{
|
||||
mIdleState = CharState_None;
|
||||
mMovementState = movement;
|
||||
|
||||
if (movement != CharState_None)
|
||||
mIdleState = CharState_None;
|
||||
|
||||
std::string movementAnimName;
|
||||
MWRender::Animation::BlendMask movemask = MWRender::Animation::BlendMask_All;
|
||||
const StateInfo *movestate = std::find_if(sMovementList, sMovementListEnd, FindCharState(mMovementState));
|
||||
|
Loading…
x
Reference in New Issue
Block a user