forked from mirror/openmw-tes3mp
Loop mid-animation idles when loading a save game
This commit is contained in:
parent
0fd810707e
commit
9b0e5d6b59
1 changed files with 2 additions and 1 deletions
|
@ -1989,9 +1989,10 @@ void CharacterController::unpersistAnimationState()
|
|||
mCurrentIdle.clear();
|
||||
mIdleState = CharState_SpecialIdle;
|
||||
|
||||
bool loopfallback = (mAnimQueue.front().mGroup.compare(0,4,"idle") == 0);
|
||||
mAnimation->play(anim.mGroup,
|
||||
Priority_Default, MWRender::Animation::BlendMask_All, false, 1.0f,
|
||||
"start", "stop", complete, anim.mLoopCount);
|
||||
"start", "stop", complete, anim.mLoopCount, loopfallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue