From 3a6c480d414ed51bfa3cc80acfe3aa1cdd57545e Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Wed, 15 Aug 2018 19:10:15 +0400 Subject: [PATCH] Do not reset idle animations when turning --- apps/openmw/mwmechanics/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 1748e3d458..dd7c15ff6c 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -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;