mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04:00
Do not reset idle animations when turning
This commit is contained in:
parent
15fa47827b
commit
3a6c480d41
@ -411,8 +411,8 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||||||
if(force || movement != mMovementState)
|
if(force || movement != mMovementState)
|
||||||
{
|
{
|
||||||
mMovementState = movement;
|
mMovementState = movement;
|
||||||
|
// Turning animations should not interrupt idle ones
|
||||||
if (movement != CharState_None)
|
if (movement != CharState_None && !isTurning())
|
||||||
mIdleState = CharState_None;
|
mIdleState = CharState_None;
|
||||||
|
|
||||||
std::string movementAnimName;
|
std::string movementAnimName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user