This commit is contained in:
Zach Fox 2018-06-11 10:40:13 -07:00
parent c7c06590ac
commit c26b03f480
2 changed files with 1 additions and 5 deletions

View file

@ -89,9 +89,7 @@ void OverlayConductor::update(float dt) {
}
bool isAtRest = updateAvatarIsAtRest();
bool prevMoving = _currentMoving;
bool isMoving = !isAtRest;
bool movingChanged = prevMoving != isMoving;
bool shouldRecenter = false;
@ -101,7 +99,7 @@ void OverlayConductor::update(float dt) {
shouldRecenter = true;
}
} else {
if (myAvatar->getClearOverlayWhenMoving() && movingChanged && isMoving) {
if (myAvatar->getClearOverlayWhenMoving() && isMoving) {
_flags |= SuppressedByMove;
}
}

View file

@ -34,8 +34,6 @@ private:
uint8_t _flags { SuppressedByMove };
bool _hmdMode { false };
bool _currentMoving { false };
// used by updateAvatarIsAtRest
uint64_t _desiredAtRestTimer { 0 };