mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
If there are TWO conditions holding things back, weight for them both to
clear.
This commit is contained in:
parent
7da854d98c
commit
2ae0a7defc
1 changed files with 6 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue