Fix end of idle.

This commit is contained in:
Howard Stearns 2015-08-03 16:09:48 -07:00
parent cdb697760f
commit 2e5142e9bb

View file

@ -398,7 +398,7 @@ void Rig::computeMotionAnimationState(float deltaTime, const glm::vec3& worldPos
float forwardSpeed = glm::dot(worldVelocity, front);
float rightLateralSpeed = glm::dot(worldVelocity, worldRotation * IDENTITY_RIGHT);
float rightTurningSpeed = glm::orientedAngle(front, _lastFront, IDENTITY_UP) / deltaTime;
auto updateRole = [=](const QString& role, bool isOn) mutable {
auto updateRole = [&](const QString& role, bool isOn) {
isMoving = isMoving || isOn;
if (isOn) {
if (!isRunningRole(role)) {