Merge pull request #13874 from amantley/phaseWalkFix

Phase walk fix bug 17770
This commit is contained in:
Anthony Thibault 2018-08-28 11:29:29 -07:00 committed by GitHub
commit f281afa71f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");