mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:36:56 +02: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) {
|
if (targetVisible != currentVisible) {
|
||||||
offscreenUi->setPinned(!targetVisible);
|
offscreenUi->setPinned(!targetVisible);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue