Added comment to explain removal of displayPlugin->resetSensors from Application::resetSensors()
Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -6468,10 +6468,13 @@ void Application::copyDisplayViewFrustum(ViewFrustum& viewOut) const { · 6467 unmodified lines | |||
| 6468 | viewOut = _displayViewFrustum; | 6468 | viewOut = _displayViewFrustum; |
| 6469 | } | 6469 | } |
| 6470 | 6470 | ||
| 6471 | // resentSensors() is a bit of vestigial feature. It used to be used for Oculus DK2 to recenter the view around | ||
| 6472 | // the current head orientation. With the introduction of "room scale" tracking we no longer need that particular | ||
| 6473 | // feature. However, we still use this to reset face trackers, eye trackers, audio and to optionally re-load the avatar | ||
| 6474 | // rig and animations from scratch. | ||
| 6471 | void Application::resetSensors(bool andReload) { | 6475 | void Application::resetSensors(bool andReload) { |
| 6472 | DependencyManager::get<DdeFaceTracker>()->reset(); | 6476 | DependencyManager::get<DdeFaceTracker>()->reset(); |
| 6473 | DependencyManager::get<EyeTracker>()->reset(); | 6477 | DependencyManager::get<EyeTracker>()->reset(); |
| 6474 | //getActiveDisplayPlugin()->resetSensors(); | ||
| 6475 | _overlayConductor.centerUI(); | 6478 | _overlayConductor.centerUI(); |
| 6476 | getMyAvatar()->reset(true, andReload); | 6479 | getMyAvatar()->reset(true, andReload); |
| 6477 | QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection); | 6480 | QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection); |