If there are TWO conditions holding things back, weight for them both to

clear.
This commit is contained in:
howard-stearns 2016-06-24 14:46:46 -07:00
parent 7da854d98c
commit 2ae0a7defc

View file

@ -123,7 +123,9 @@ void OverlayConductor::update(float dt) {
if (_flags & SuppressedByDrive) {
if (!isDriving) {
_flags &= ~SuppressedByDrive;
shouldRecenter = true;
if (_flags & SuppressMask) {
shouldRecenter = true;
}
}
} else {
if (myAvatar->getClearOverlayWhenMoving() && drivingChanged && isDriving) {
@ -134,7 +136,9 @@ void OverlayConductor::update(float dt) {
if (_flags & SuppressedByHead) {
if (isAtRest) {
_flags &= ~SuppressedByHead;
shouldRecenter = true;
if (_flags & SuppressMask) {
shouldRecenter = true;
}
}
} else {
if (_hmdMode && headOutsideOverlay()) {