Fixed View Overlays checkbox (thanks Dante)

This commit is contained in:
Zach Fox 2018-06-27 14:27:09 -07:00
parent cfc8c0fb09
commit 2347634d72
2 changed files with 3 additions and 5 deletions

View file

@ -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) { if (targetVisible != currentVisible) {
offscreenUi->setPinned(!targetVisible); offscreenUi->setPinned(!targetVisible);
} }

View file

@ -26,12 +26,10 @@ private:
bool updateAvatarIsAtRest(); bool updateAvatarIsAtRest();
enum SupressionFlags { enum SupressionFlags {
SuppressedByMove = 0x01, SuppressedByHead = 0x01
SuppressedByHead = 0x02,
SuppressMask = 0x03,
}; };
uint8_t _flags { SuppressedByMove }; uint8_t _flags { SuppressedByHead };
bool _hmdMode { false }; bool _hmdMode { false };
// used by updateAvatarIsAtRest // used by updateAvatarIsAtRest