mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 05:20:14 -04: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(!state.mPlaying && state.mAutoDisable)
|
||||||
{
|
{
|
||||||
|
if(mNonAccumCtrl && stateiter->first == mAnimationTimePtr[0]->getAnimName())
|
||||||
|
mAccumRoot->setPosition(0.f,0.f,0.f);
|
||||||
|
|
||||||
mStates.erase(stateiter++);
|
mStates.erase(stateiter++);
|
||||||
|
|
||||||
resetActiveGroups();
|
resetActiveGroups();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user