From 3988866ecd59c1b15273f28e5a4bc371422021ca Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 12 May 2013 04:34:37 -0700 Subject: [PATCH] Make sure active groups are updated after a state is auto-disabled --- apps/openmw/mwrender/animation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwrender/animation.cpp b/apps/openmw/mwrender/animation.cpp index fa8177a9d6..972410903e 100644 --- a/apps/openmw/mwrender/animation.cpp +++ b/apps/openmw/mwrender/animation.cpp @@ -664,7 +664,10 @@ Ogre::Vector3 Animation::runAnimation(float duration) } if(!state.mPlaying && state.mAutoDisable) + { mStates.erase(stateiter++); + resetActiveGroups(); + } else stateiter++; }