mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 06:10:52 +02:00
Add first-run checks for flying settings.
This commit is contained in:
parent
6257d5618a
commit
a99f9310da
1 changed files with 7 additions and 1 deletions
|
@ -4838,7 +4838,13 @@ void Application::loadSettings() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isFirstPerson = (qApp->isHMDMode());
|
isFirstPerson = (qApp->isHMDMode())
|
||||||
|
|
||||||
|
// Flying should be disabled by default in HMD mode on first run, and it
|
||||||
|
// should be enabled by default in desktop mode, always.
|
||||||
|
auto myAvatar = getMyAvatar();
|
||||||
|
myAvatar->setFlyingEnabled((isFirstPerson)?false:true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// if this is not the first run, the camera will be initialized differently depending on user settings
|
// if this is not the first run, the camera will be initialized differently depending on user settings
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue