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:
parent
0fd810707e
commit
9b0e5d6b59
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue