mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix animation not looping in the same state
This commit is contained in:
parent
2c738fa28e
commit
418985f90b
1 changed files with 4 additions and 1 deletions
|
@ -5555,7 +5555,10 @@ void Player::EvaluateState(State *forceTorso, State *forceLegs)
|
|||
|
||||
oldTime = GetTime(m_iPartSlot[legs]);
|
||||
SetPartAnim(legsAnim, legs);
|
||||
SetTime(m_iPartSlot[legs], oldTime);
|
||||
|
||||
if (animtimes[m_iPartSlot[legs]] > 0) {
|
||||
SetTime(m_iPartSlot[legs], fmod(oldTime, animtimes[m_iPartSlot[legs]]));
|
||||
}
|
||||
} else {
|
||||
SetPartAnim(legsAnim, legs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue