From 3c9f3f392736b56a0641a6f6707c00077b2871bf Mon Sep 17 00:00:00 2001 From: Zander Otavka Date: Wed, 22 Jun 2016 16:22:14 -0700 Subject: [PATCH] Automatically enter first person when in HMD mode --- 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 d20a62fc7b..ddfa5dae8b 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -5350,7 +5350,13 @@ void Application::updateDisplayMode() { // reset the avatar, to set head and hand palms back to a reasonable default pose. getMyAvatar()->reset(false); - Q_ASSERT_X(_displayPlugin, "Application::updateDisplayMode", "could not find an activated display plugin"); + // go into first person when they are in HMD mode, since 3rd person HMD is dumb + if (isHMDMode() && !menu->isOptionChecked(MenuOption::FirstPerson)) { + menu->setIsOptionChecked(MenuOption::FirstPerson, true); + cameraMenuChanged(); + } + + Q_ASSERT_X(_displayPlugin, "Application::updateDisplayMode", "could not find an activated display plugin"); } mat4 Application::getEyeProjection(int eye) const {