mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 03:27:24 +02:00
Do not send stale vive data as valid after deactivating.
(cherry picked from commit e6cc1fabe0
)
This commit is contained in:
parent
e92f1a8c5a
commit
849bee977a
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ void OpenVrDisplayPlugin::internalDeactivate() {
|
||||||
Parent::internalDeactivate();
|
Parent::internalDeactivate();
|
||||||
_container->setIsOptionChecked(StandingHMDSensorMode, false);
|
_container->setIsOptionChecked(StandingHMDSensorMode, false);
|
||||||
if (_system) {
|
if (_system) {
|
||||||
|
// Invalidate poses. It's fine if someone else sets these shared values, but we're about to stop updating them, and
|
||||||
|
// we don't want ViveControllerManager to consider old values to be valid.
|
||||||
|
for (int i = 0; i < vr::k_unMaxTrackedDeviceCount; i++) {
|
||||||
|
_trackedDevicePose[i].bPoseIsValid = false;
|
||||||
|
}
|
||||||
releaseOpenVrSystem();
|
releaseOpenVrSystem();
|
||||||
_system = nullptr;
|
_system = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue