1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-26 06:40:22 +00:00

Prevent a missing weapon animation from partially freezing actors

This commit is contained in:
Evil Eye 2021-07-27 16:33:07 +02:00
parent 1e7b9fb6a5
commit 977f717f8b

View File

@ -1661,7 +1661,8 @@ bool CharacterController::updateWeaponState(CharacterState& idle)
MWRender::Animation::BlendMask_All, false,
weapSpeed, startKey, stopKey,
0.0f, 0);
mUpperBodyState = UpperCharState_StartToMinAttack;
if(mAnimation->isPlaying(mCurrentWeapon))
mUpperBodyState = UpperCharState_StartToMinAttack;
}
}