Fix Quest both hands get tracking state when only one is being tracked
This commit is contained in:
parent
a3a2732060
commit
90b4c46988
@ -86,7 +86,7 @@ namespace Passer.Tracking {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (OculusDevice.GetHandState(OculusDevice.Step.Render, isLeft ? OculusDevice.Hand.HandLeft : OculusDevice.Hand.HandRight, ref handState)) {
|
if (OculusDevice.GetHandState(OculusDevice.Step.Render, isLeft ? OculusDevice.Hand.HandLeft : OculusDevice.Hand.HandRight, ref handState)) {
|
||||||
if (handState.Status == 0) {
|
if ((handState.Status & OculusDevice.HandStatus.HandTracked) == 0) {
|
||||||
status = Tracker.Status.Present;
|
status = Tracker.Status.Present;
|
||||||
DisableRenderer();
|
DisableRenderer();
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user