1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Play swimming animation fallback on the upper body when possible

This commit is contained in:
scrawl 2015-07-31 00:35:17 +02:00
parent 1f755a2bc0
commit e8cbdcfb1e

View File

@ -390,7 +390,8 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
}
else
{
movemask = MWRender::Animation::BlendMask_LowerBody;
if (weap != sWeaponTypeListEnd)
movemask = MWRender::Animation::BlendMask_LowerBody;
movementAnimName.erase(swimpos, 4);
if(!mAnimation->hasAnimation(movementAnimName))
movementAnimName.clear();