Do not reset idle animations when turning

pull/540/head^2
Andrei Kortunov 6 years ago
parent 15fa47827b
commit 3a6c480d41

@ -411,8 +411,8 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
if(force || movement != mMovementState)
{
mMovementState = movement;
if (movement != CharState_None)
// Turning animations should not interrupt idle ones
if (movement != CharState_None && !isTurning())
mIdleState = CharState_None;
std::string movementAnimName;

Loading…
Cancel
Save