mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
doh!
This commit is contained in:
parent
2ae0a7defc
commit
9ae3c38616
1 changed files with 3 additions and 7 deletions
|
@ -123,9 +123,7 @@ void OverlayConductor::update(float dt) {
|
|||
if (_flags & SuppressedByDrive) {
|
||||
if (!isDriving) {
|
||||
_flags &= ~SuppressedByDrive;
|
||||
if (_flags & SuppressMask) {
|
||||
shouldRecenter = true;
|
||||
}
|
||||
shouldRecenter = true;
|
||||
}
|
||||
} else {
|
||||
if (myAvatar->getClearOverlayWhenMoving() && drivingChanged && isDriving) {
|
||||
|
@ -136,9 +134,7 @@ void OverlayConductor::update(float dt) {
|
|||
if (_flags & SuppressedByHead) {
|
||||
if (isAtRest) {
|
||||
_flags &= ~SuppressedByHead;
|
||||
if (_flags & SuppressMask) {
|
||||
shouldRecenter = true;
|
||||
}
|
||||
shouldRecenter = true;
|
||||
}
|
||||
} else {
|
||||
if (_hmdMode && headOutsideOverlay()) {
|
||||
|
@ -151,7 +147,7 @@ void OverlayConductor::update(float dt) {
|
|||
if (targetVisible != currentVisible) {
|
||||
offscreenUi->setPinned(!targetVisible);
|
||||
}
|
||||
if (shouldRecenter) {
|
||||
if (shouldRecenter && !_flags) {
|
||||
centerUI();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue