mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Merge pull request #13874 from amantley/phaseWalkFix
Phase walk fix bug 17770
This commit is contained in:
commit
f281afa71f
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ void AnimBlendLinearMove::setFrameAndPhase(float dt, float alpha, int prevPoseIn
|
|||
// integrate phase forward in time.
|
||||
_phase += omega * dt;
|
||||
|
||||
if (_phase < 0.0f) {
|
||||
_phase = 0.0f;
|
||||
}
|
||||
|
||||
// detect loop trigger events
|
||||
if (_phase >= 1.0f) {
|
||||
triggersOut.setTrigger(_id + "Loop");
|
||||
|
|
Loading…
Reference in a new issue