Skip to content

Commit 121a679

Browse files
authored
Fixing bug due to missing flag ifdefs (#10628)
fixing bug due to missing flag ifdefs
1 parent 0edcb0b commit 121a679

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Assets/MRTK/Providers/Oculus/XRSDK/Controllers/OculusXRSDKTouchController.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ protected override bool TryRenderControllerModel(System.Type controllerType, Inp
110110

111111
private void TryRenderControllerModelFromOculus()
112112
{
113+
#if OCULUSINTEGRATION_PRESENT
113114
OculusXRSDKDeviceManager deviceManager = CoreServices.GetInputSystemDataProvider<OculusXRSDKDeviceManager>();
114115

115-
if(deviceManager.IsNotNull())
116+
if (deviceManager.IsNotNull())
116117
{
117118
GameObject platformVisualization = null;
118119
if (ControllerHandedness == Handedness.Left)
@@ -125,6 +126,7 @@ private void TryRenderControllerModelFromOculus()
125126
}
126127
RegisterControllerVisualization(platformVisualization);
127128
}
129+
#endif
128130

129131
if (this != null)
130132
{

0 commit comments

Comments
 (0)