mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 15:33:35 +02:00
Fix end of idle.
This commit is contained in:
parent
cdb697760f
commit
2e5142e9bb
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue