Automatically enter first person when in HMD mode

This commit is contained in:
Zander Otavka 2016-06-22 16:22:14 -07:00
parent a48cce2975
commit 3c9f3f3927

View file

@ -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 {