mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 18:45:32 +00:00
Fix improper swimming animations in first person mode
This commit is contained in:
parent
0efce6cd4c
commit
f1f82af64e
1 changed files with 10 additions and 3 deletions
|
@ -397,10 +397,17 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (weap != sWeaponTypeListEnd)
|
|
||||||
movemask = MWRender::Animation::BlendMask_LowerBody;
|
|
||||||
movementAnimName.erase(swimpos, 4);
|
movementAnimName.erase(swimpos, 4);
|
||||||
if(!mAnimation->hasAnimation(movementAnimName))
|
if (weap != sWeaponTypeListEnd)
|
||||||
|
{
|
||||||
|
std::string weapMovementAnimName = movementAnimName + weap->shortgroup;
|
||||||
|
if(mAnimation->hasAnimation(weapMovementAnimName))
|
||||||
|
movementAnimName = weapMovementAnimName;
|
||||||
|
else
|
||||||
|
movemask = MWRender::Animation::BlendMask_LowerBody;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!mAnimation->hasAnimation(movementAnimName))
|
||||||
movementAnimName.clear();
|
movementAnimName.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue