Skip to content

Commit 7f28c80

Browse files
committed
Update PlatformHandMeshVisualizer.cs
1 parent 0f60b07 commit 7f28c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.mixedrealitytoolkit.input/Visualizers/PlatformHandVisualizer/PlatformHandMeshVisualizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected override void OnEnable()
4848
propertyBlock ??= new MaterialPropertyBlock();
4949

5050
#if UNITY_OPENXR_PRESENT
51-
if (UnityEngine.XR.OpenXR.OpenXRRuntime.IsExtensionEnabled("XR_ANDROID_hand_mesh"))
51+
if (UnityEngine.XR.OpenXR.OpenXRRuntime.IsExtensionEnabled("XR_ANDROID_hand_mesh") && (meshSubsystem == null || !meshSubsystem.running))
5252
{
5353
List<XRMeshSubsystem> meshSubsystems = new List<XRMeshSubsystem>();
5454
SubsystemManager.GetSubsystems(meshSubsystems);

0 commit comments

Comments
 (0)