forked from teamnwah/openmw-tes3coop
Use SpellTurnLeft/TurnRight animation groups
This commit is contained in:
parent
b390ce3002
commit
5cb9dc9d12
1 changed files with 4 additions and 1 deletions
|
@ -422,6 +422,9 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||
movementAnimName = movestate->groupname;
|
||||
if(weap != sWeaponTypeListEnd && movementAnimName.find("swim") == std::string::npos)
|
||||
{
|
||||
if (mWeaponType == WeapType_Spell && (mMovementState == CharState_TurnLeft || mMovementState == CharState_TurnRight)) // Spellcasting stance turning is a special case
|
||||
movementAnimName = weap->shortgroup + movementAnimName;
|
||||
else
|
||||
movementAnimName += weap->shortgroup;
|
||||
if(!mAnimation->hasAnimation(movementAnimName))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue