mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 16:15:35 +00:00
Apply weapon reload animations only for upper body
This commit is contained in:
parent
3f63e625cf
commit
75dcbea365
1 changed files with 4 additions and 2 deletions
|
@ -1627,16 +1627,18 @@ bool CharacterController::updateWeaponState()
|
|||
break;
|
||||
}
|
||||
|
||||
// Note: apply reload animations only for upper body since blending with movement animations can give weird result.
|
||||
// Especially noticable with crossbow reload animation.
|
||||
if(!start.empty())
|
||||
{
|
||||
mAnimation->disable(mCurrentWeapon);
|
||||
if (mUpperBodyState == UpperCharState_FollowStartToFollowStop)
|
||||
mAnimation->play(mCurrentWeapon, priorityWeapon,
|
||||
MWRender::Animation::BlendMask_All, true,
|
||||
MWRender::Animation::BlendMask_UpperBody, true,
|
||||
weapSpeed, start, stop, 0.0f, 0);
|
||||
else
|
||||
mAnimation->play(mCurrentWeapon, priorityWeapon,
|
||||
MWRender::Animation::BlendMask_All, false,
|
||||
MWRender::Animation::BlendMask_UpperBody, false,
|
||||
weapSpeed, start, stop, 0.0f, 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue