Showing the changes to interface/src/ui/OverlayConductor.cpp (1 of 1 file). Show all
Unified · Split
| @@ -123,7 +123,9 @@ void OverlayConductor::update(float dt) { · 122 unmodified lines | ||
| 123 | 123 | if (_flags & SuppressedByDrive) { |
| 124 | 124 | if (!isDriving) { |
| 125 | 125 | _flags &= ~SuppressedByDrive; |
| 126 | − shouldRecenter = true; | |
| 126 | + if (_flags & SuppressMask) { | |
| 127 | + shouldRecenter = true; | |
| 128 | + } | |
| 127 | 129 | } |
| 128 | 130 | } else { |
| 129 | 131 | if (myAvatar->getClearOverlayWhenMoving() && drivingChanged && isDriving) { |
| @@ -134,7 +136,9 @@ void OverlayConductor::update(float dt) { · 4 unmodified lines | ||
| 134 | 136 | if (_flags & SuppressedByHead) { |
| 135 | 137 | if (isAtRest) { |
| 136 | 138 | _flags &= ~SuppressedByHead; |
| 137 | − shouldRecenter = true; | |
| 139 | + if (_flags & SuppressMask) { | |
| 140 | + shouldRecenter = true; | |
| 141 | + } | |
| 138 | 142 | } |
| 139 | 143 | } else { |
| 140 | 144 | if (_hmdMode && headOutsideOverlay()) { |