From fc21f6088a1fe7f0c661f4d7587b1a758f463d2a Mon Sep 17 00:00:00 2001 From: amer cerkic Date: Wed, 10 Jul 2019 14:07:10 -0700 Subject: [PATCH] undoing code structures changes to else blocks --- interface/src/Application.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index a502cd7ba4..add73ee9c5 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5418,8 +5418,7 @@ void Application::loadSettings() { } } isFirstPerson = (qApp->isHMDMode()); - } - else { + } else { if (_firstRun.get()) { // If this is our first run, and no preferred devices were set, default to // an HMD device if available. @@ -5434,15 +5433,13 @@ void Application::loadSettings() { } } isFirstPerson = (qApp->isHMDMode()); - } - else { + } else { // if this is not the first run, the camera will be initialized differently depending on user settings if (qApp->isHMDMode()) { // if the HMD is active, use first-person camera, unless the appropriate setting is checked isFirstPerson = menu->isOptionChecked(MenuOption::FirstPersonHMD); - } - else { + } else { // if HMD is not active, only use first person if the menu option is checked isFirstPerson = menu->isOptionChecked(MenuOption::FirstPerson); }