mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 08:56:10 -04:00
Don't complain about missing jump animations
This commit is contained in:
parent
13646a651b
commit
047bbe43b2
@ -250,6 +250,7 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
|||||||
|
|
||||||
mAnimation->disable(mCurrentJump);
|
mAnimation->disable(mCurrentJump);
|
||||||
mCurrentJump = jump;
|
mCurrentJump = jump;
|
||||||
|
if (mAnimation->hasAnimation("jump"))
|
||||||
mAnimation->play(mCurrentJump, Priority_Jump, jumpgroup, false,
|
mAnimation->play(mCurrentJump, Priority_Jump, jumpgroup, false,
|
||||||
1.0f, ((mode!=2)?"start":"loop start"), "stop", 0.0f, ~0ul);
|
1.0f, ((mode!=2)?"start":"loop start"), "stop", 0.0f, ~0ul);
|
||||||
}
|
}
|
||||||
@ -257,6 +258,7 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
|||||||
{
|
{
|
||||||
mAnimation->disable(mCurrentJump);
|
mAnimation->disable(mCurrentJump);
|
||||||
mCurrentJump.clear();
|
mCurrentJump.clear();
|
||||||
|
if (mAnimation->hasAnimation("jump"))
|
||||||
mAnimation->play(jump, Priority_Jump, jumpgroup, true,
|
mAnimation->play(jump, Priority_Jump, jumpgroup, true,
|
||||||
1.0f, "loop stop", "stop", 0.0f, 0);
|
1.0f, "loop stop", "stop", 0.0f, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user