1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Loop mid-animation idles when loading a save game

This commit is contained in:
Allofich 2016-08-23 19:50:56 +09:00
parent 0fd810707e
commit 9b0e5d6b59

View file

@ -1989,9 +1989,10 @@ void CharacterController::unpersistAnimationState()
mCurrentIdle.clear(); mCurrentIdle.clear();
mIdleState = CharState_SpecialIdle; mIdleState = CharState_SpecialIdle;
bool loopfallback = (mAnimQueue.front().mGroup.compare(0,4,"idle") == 0);
mAnimation->play(anim.mGroup, mAnimation->play(anim.mGroup,
Priority_Default, MWRender::Animation::BlendMask_All, false, 1.0f, Priority_Default, MWRender::Animation::BlendMask_All, false, 1.0f,
"start", "stop", complete, anim.mLoopCount); "start", "stop", complete, anim.mLoopCount, loopfallback);
} }
} }