History

Honor reorient and quit request from OVR

Atlante45 committed 9 years ago

Commit 7b0b7771 parent bc9f2b45 files · +40 −5Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+2−1
@@ -4750,7 +4750,7 @@ void Application::resetSensors(bool andReload) { · 4749 unmodified lines
47504750 DependencyManager::get<EyeTracker>()->reset();
47514751 getActiveDisplayPlugin()->resetSensors();
47524752 _overlayConductor.centerUI();
4753− getMyAvatar()->reset(andReload);
4753+ getMyAvatar()->reset(true, andReload);
47544754 QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection);
47554755 }
47564756
@@ -5735,6 +5735,7 @@ void Application::updateDisplayMode() { · 978 unmodified lines
57355735 QObject::connect(displayPlugin.get(), &DisplayPlugin::recommendedFramebufferSizeChanged, [this](const QSize & size) {
57365736 resizeGL();
57375737 });
5738+ QObject::connect(displayPlugin.get(), &DisplayPlugin::resetSensorsRequested, this, &Application::requestReset);
57385739 first = false;
57395740 }
57405741