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:
parent
ee098de0a6
commit
ec64f1a53a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user