Explorar o código

Added a missed a preprocessor for when not using openVR.

Areloch %!s(int64=9) %!d(string=hai) anos
pai
achega
6dbfe77ddb
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Engine/source/T3D/player.h

+ 5 - 0
Engine/source/T3D/player.h

@@ -39,7 +39,10 @@ class DecalData;
 class SplashData;
 class PhysicsPlayer;
 class Player;
+
+#ifdef TORQUE_OPENVR
 class OpenVRTrackedObject;
+#endif
 
 //----------------------------------------------------------------------------
 
@@ -519,7 +522,9 @@ protected:
    Point3F mLastPos;          ///< Holds the last position for physics updates
    Point3F mLastWaterPos;     ///< Same as mLastPos, but for water
 
+#ifdef TORQUE_OPENVR
    SimObjectPtr<OpenVRTrackedObject> mControllers[2];
+#endif
 
    struct ContactInfo 
    {