mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Code review feedback
Added comment to explain removal of displayPlugin->resetSensors from Application::resetSensors()
This commit is contained in:
parent
ac8869eb61
commit
ac8281075b
1 changed files with 4 additions and 1 deletions
|
@ -6468,10 +6468,13 @@ void Application::copyDisplayViewFrustum(ViewFrustum& viewOut) const {
|
|||
viewOut = _displayViewFrustum;
|
||||
}
|
||||
|
||||
// resentSensors() is a bit of vestigial feature. It used to be used for Oculus DK2 to recenter the view around
|
||||
// the current head orientation. With the introduction of "room scale" tracking we no longer need that particular
|
||||
// feature. However, we still use this to reset face trackers, eye trackers, audio and to optionally re-load the avatar
|
||||
// rig and animations from scratch.
|
||||
void Application::resetSensors(bool andReload) {
|
||||
DependencyManager::get<DdeFaceTracker>()->reset();
|
||||
DependencyManager::get<EyeTracker>()->reset();
|
||||
//getActiveDisplayPlugin()->resetSensors();
|
||||
_overlayConductor.centerUI();
|
||||
getMyAvatar()->reset(true, andReload);
|
||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection);
|
||||
|
|
Loading…
Reference in a new issue