mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
Cleanup
This commit is contained in:
parent
c7c06590ac
commit
c26b03f480
2 changed files with 1 additions and 5 deletions
|
@ -89,9 +89,7 @@ void OverlayConductor::update(float dt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isAtRest = updateAvatarIsAtRest();
|
bool isAtRest = updateAvatarIsAtRest();
|
||||||
bool prevMoving = _currentMoving;
|
|
||||||
bool isMoving = !isAtRest;
|
bool isMoving = !isAtRest;
|
||||||
bool movingChanged = prevMoving != isMoving;
|
|
||||||
|
|
||||||
bool shouldRecenter = false;
|
bool shouldRecenter = false;
|
||||||
|
|
||||||
|
@ -101,7 +99,7 @@ void OverlayConductor::update(float dt) {
|
||||||
shouldRecenter = true;
|
shouldRecenter = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (myAvatar->getClearOverlayWhenMoving() && movingChanged && isMoving) {
|
if (myAvatar->getClearOverlayWhenMoving() && isMoving) {
|
||||||
_flags |= SuppressedByMove;
|
_flags |= SuppressedByMove;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,6 @@ private:
|
||||||
uint8_t _flags { SuppressedByMove };
|
uint8_t _flags { SuppressedByMove };
|
||||||
bool _hmdMode { false };
|
bool _hmdMode { false };
|
||||||
|
|
||||||
bool _currentMoving { false };
|
|
||||||
|
|
||||||
// used by updateAvatarIsAtRest
|
// used by updateAvatarIsAtRest
|
||||||
uint64_t _desiredAtRestTimer { 0 };
|
uint64_t _desiredAtRestTimer { 0 };
|
||||||
bool _desiredAtRest { true };
|
bool _desiredAtRest { true };
|
||||||
|
|
Loading…
Reference in a new issue