mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:03:59 +02:00
Fix overlay stuck to face
This commit is contained in:
parent
33e9caa636
commit
067539ff6d
1 changed files with 5 additions and 3 deletions
|
@ -105,9 +105,11 @@ void OverlayConductor::update(float dt) {
|
|||
|
||||
MyAvatar* myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();
|
||||
// centerUI when hmd mode is first enabled and mounted
|
||||
if (qApp->isHMDMode() && qApp->getActiveDisplayPlugin()->isDisplayVisible() && !_hmdMode) {
|
||||
_hmdMode = true;
|
||||
centerUI();
|
||||
if (qApp->isHMDMode() && qApp->getActiveDisplayPlugin()->isDisplayVisible()) {
|
||||
if (!_hmdMode) {
|
||||
_hmdMode = true;
|
||||
centerUI();
|
||||
}
|
||||
} else {
|
||||
_hmdMode = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue