mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-04 19:45:33 +00:00
Fix swim crossbow animations
This commit is contained in:
parent
947f20ddb9
commit
0440c11ccd
1 changed files with 5 additions and 0 deletions
|
@ -423,6 +423,7 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||
movementAnimName = weap->shortgroup + movementAnimName;
|
||||
else
|
||||
movementAnimName += weap->shortgroup;
|
||||
|
||||
if(!mAnimation->hasAnimation(movementAnimName))
|
||||
{
|
||||
movemask = MWRender::Animation::BlendMask_LowerBody;
|
||||
|
@ -451,6 +452,10 @@ void CharacterController::refreshMovementAnims(const WeaponInfo* weap, Character
|
|||
}
|
||||
else
|
||||
{
|
||||
// For crossbow animations use 1h ones as fallback
|
||||
if (mWeaponType == WeapType_Crossbow)
|
||||
movementAnimName += "1h";
|
||||
|
||||
movementAnimName.erase(swimpos, 4);
|
||||
if (weap != sWeaponTypeListEnd)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue