mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
Automatically enter first person when in HMD mode
This commit is contained in:
parent
a48cce2975
commit
3c9f3f3927
1 changed files with 7 additions and 1 deletions
|
@ -5350,7 +5350,13 @@ void Application::updateDisplayMode() {
|
||||||
// reset the avatar, to set head and hand palms back to a reasonable default pose.
|
// reset the avatar, to set head and hand palms back to a reasonable default pose.
|
||||||
getMyAvatar()->reset(false);
|
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 {
|
mat4 Application::getEyeProjection(int eye) const {
|
||||||
|
|
Loading…
Reference in a new issue