1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Make sure active groups are updated after a state is auto-disabled

This commit is contained in:
Chris Robinson 2013-05-12 04:34:37 -07:00
parent 2c556e4036
commit 3988866ecd

View File

@ -664,7 +664,10 @@ Ogre::Vector3 Animation::runAnimation(float duration)
}
if(!state.mPlaying && state.mAutoDisable)
{
mStates.erase(stateiter++);
resetActiveGroups();
}
else
stateiter++;
}