1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 21:35:24 +00:00

Merge branch 'seducer_ice_queen' into 'master'

Prevent a missing weapon animation from partially freezing actors

See merge request OpenMW/openmw!1060
This commit is contained in:
psi29a 2021-07-28 09:06:13 +00:00
commit 292e6f1a9e

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;
}
}