mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fixed View Overlays checkbox (thanks Dante)
This commit is contained in:
parent
cfc8c0fb09
commit
2347634d72
2 changed files with 3 additions and 5 deletions
|
@ -104,7 +104,7 @@ void OverlayConductor::update(float dt) {
|
|||
}
|
||||
}
|
||||
|
||||
bool targetVisible = Menu::getInstance()->isOptionChecked(MenuOption::Overlays) && (0 == (_flags & SuppressMask));
|
||||
bool targetVisible = Menu::getInstance()->isOptionChecked(MenuOption::Overlays) && (0 == (_flags & SuppressedByHead));
|
||||
if (targetVisible != currentVisible) {
|
||||
offscreenUi->setPinned(!targetVisible);
|
||||
}
|
||||
|
|
|
@ -26,12 +26,10 @@ private:
|
|||
bool updateAvatarIsAtRest();
|
||||
|
||||
enum SupressionFlags {
|
||||
SuppressedByMove = 0x01,
|
||||
SuppressedByHead = 0x02,
|
||||
SuppressMask = 0x03,
|
||||
SuppressedByHead = 0x01
|
||||
};
|
||||
|
||||
uint8_t _flags { SuppressedByMove };
|
||||
uint8_t _flags { SuppressedByHead };
|
||||
bool _hmdMode { false };
|
||||
|
||||
// used by updateAvatarIsAtRest
|
||||
|
|
Loading…
Reference in a new issue