From a99f9310da11a5e60141c65da91e64351181067f Mon Sep 17 00:00:00 2001 From: MuteTab Date: Thu, 19 Jul 2018 12:41:24 -0700 Subject: [PATCH] Add first-run checks for flying settings. --- interface/src/Application.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 311c08b858..a1d4a1e8e2 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -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 { // if this is not the first run, the camera will be initialized differently depending on user settings