forked from teamnwah/openmw-tes3coop
Fix weapon animation priority
This commit is contained in:
parent
41996b0aad
commit
dff84adf7e
2 changed files with 2 additions and 1 deletions
|
@ -1052,7 +1052,7 @@ bool CharacterController::updateWeaponState()
|
||||||
}
|
}
|
||||||
|
|
||||||
MWRender::Animation::AnimPriority priorityWeapon(Priority_Weapon);
|
MWRender::Animation::AnimPriority priorityWeapon(Priority_Weapon);
|
||||||
priorityWeapon.mPriority[MWRender::Animation::BoneGroup_LowerBody] = 0;
|
priorityWeapon.mPriority[MWRender::Animation::BoneGroup_LowerBody] = Priority_WeaponLowerBody;
|
||||||
|
|
||||||
bool forcestateupdate = false;
|
bool forcestateupdate = false;
|
||||||
if(weaptype != mWeaponType && mHitState != CharState_KnockDown && mHitState != CharState_KnockOut
|
if(weaptype != mWeaponType && mHitState != CharState_KnockDown && mHitState != CharState_KnockOut
|
||||||
|
|
|
@ -28,6 +28,7 @@ class CreatureStats;
|
||||||
|
|
||||||
enum Priority {
|
enum Priority {
|
||||||
Priority_Default,
|
Priority_Default,
|
||||||
|
Priority_WeaponLowerBody,
|
||||||
Priority_Jump,
|
Priority_Jump,
|
||||||
Priority_Movement,
|
Priority_Movement,
|
||||||
Priority_Hit,
|
Priority_Hit,
|
||||||
|
|
Loading…
Reference in a new issue