mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Clear 'swim' from the animation name as a backup instead of 'sneak'
This commit is contained in:
parent
9ea6b22a83
commit
e78bdd2a5d
@ -191,13 +191,13 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
|
||||
|
||||
if(!mAnimation->hasAnimation(movement))
|
||||
{
|
||||
std::string::size_type sneakpos = movement.find("sneak");
|
||||
if(sneakpos == std::string::npos)
|
||||
std::string::size_type swimpos = movement.find("swim");
|
||||
if(swimpos == std::string::npos)
|
||||
movement.clear();
|
||||
else
|
||||
{
|
||||
movegroup = MWRender::Animation::Group_LowerBody;
|
||||
movement.erase(sneakpos, 5);
|
||||
movement.erase(swimpos, 4);
|
||||
if(!mAnimation->hasAnimation(movement))
|
||||
movement.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user