mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge branch 'hackercenturions' into 'master'
Override non-biped follow animation by movement See merge request OpenMW/openmw!2276
This commit is contained in:
commit
be947bfcf6
@ -1647,7 +1647,11 @@ bool CharacterController::updateWeaponState()
|
|||||||
|
|
||||||
if (animPlaying)
|
if (animPlaying)
|
||||||
mAnimation->disable(mCurrentWeapon);
|
mAnimation->disable(mCurrentWeapon);
|
||||||
mAnimation->play(mCurrentWeapon, priorityWeapon, MWRender::Animation::BlendMask_All, false, weapSpeed, mAttackType + ' ' + start, mAttackType + ' ' + stop, 0.0f, 0);
|
MWRender::Animation::AnimPriority priorityFollow(priorityWeapon);
|
||||||
|
// Follow animations have lower priority than movement for non-biped creatures, logic be damned
|
||||||
|
if (!cls.isBipedal(mPtr))
|
||||||
|
priorityFollow = Priority_Default;
|
||||||
|
mAnimation->play(mCurrentWeapon, priorityFollow, MWRender::Animation::BlendMask_All, false, weapSpeed, mAttackType + ' ' + start, mAttackType + ' ' + stop, 0.0f, 0);
|
||||||
mUpperBodyState = UpperBodyState::AttackEnd;
|
mUpperBodyState = UpperBodyState::AttackEnd;
|
||||||
|
|
||||||
animPlaying = mAnimation->getInfo(mCurrentWeapon, &complete);
|
animPlaying = mAnimation->getInfo(mCurrentWeapon, &complete);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user