mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:23:54 +00:00
Make sure active groups are updated after a state is auto-disabled
This commit is contained in:
parent
2c556e4036
commit
3988866ecd
1 changed files with 3 additions and 0 deletions
|
@ -664,7 +664,10 @@ Ogre::Vector3 Animation::runAnimation(float duration)
|
|||
}
|
||||
|
||||
if(!state.mPlaying && state.mAutoDisable)
|
||||
{
|
||||
mStates.erase(stateiter++);
|
||||
resetActiveGroups();
|
||||
}
|
||||
else
|
||||
stateiter++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue