summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr/steamvr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-steamvr/steamvr.cpp')
-rw-r--r--tracker-steamvr/steamvr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp
index 80a71e1d..8998149c 100644
--- a/tracker-steamvr/steamvr.cpp
+++ b/tracker-steamvr/steamvr.cpp
@@ -252,11 +252,11 @@ bool steamvr::center()
{
if (v)
{
- // Reset yaw and position
- v->ResetSeatedZeroPose();
-
if (v->GetTrackedDeviceClass(device_index) == vr::ETrackedDeviceClass::TrackedDeviceClass_HMD)
{
+ // Reset yaw and position
+ v->ResetSeatedZeroPose();
+
// Use chaperone universe real world up instead of opentrack's initial pose centering
// Note: Controllers will be centered based on initial headset position.
// TODO: may want to center controller/tracker yaw and position (only) when used alone