1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Fix weapon animation priority

This commit is contained in:
scrawl 2015-07-26 01:35:36 +02:00
parent 41996b0aad
commit dff84adf7e
2 changed files with 2 additions and 1 deletions

View File

@ -1052,7 +1052,7 @@ bool CharacterController::updateWeaponState()
}
MWRender::Animation::AnimPriority priorityWeapon(Priority_Weapon);
priorityWeapon.mPriority[MWRender::Animation::BoneGroup_LowerBody] = 0;
priorityWeapon.mPriority[MWRender::Animation::BoneGroup_LowerBody] = Priority_WeaponLowerBody;
bool forcestateupdate = false;
if(weaptype != mWeaponType && mHitState != CharState_KnockDown && mHitState != CharState_KnockOut

View File

@ -28,6 +28,7 @@ class CreatureStats;
enum Priority {
Priority_Default,
Priority_WeaponLowerBody,
Priority_Jump,
Priority_Movement,
Priority_Hit,