1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

Reset accumulation root when its animation finishes

Fixes a position flicker after standing up from knockdown.
This commit is contained in:
scrawl 2014-06-25 02:46:39 +02:00
parent ee098de0a6
commit ec64f1a53a

View File

@ -1027,7 +1027,11 @@ Ogre::Vector3 Animation::runAnimation(float duration)
if(!state.mPlaying && state.mAutoDisable)
{
if(mNonAccumCtrl && stateiter->first == mAnimationTimePtr[0]->getAnimName())
mAccumRoot->setPosition(0.f,0.f,0.f);
mStates.erase(stateiter++);
resetActiveGroups();
}
else