1
0
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:
scrawl 2017-03-23 19:36:34 +01:00
parent c611ddba8d
commit a5d7b36c28

View File

@ -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));