From 1925d1e6f9dbb0c93ec1bf3ab3a711ca39547295 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Thu, 22 Aug 2024 11:57:56 +1000 Subject: [PATCH] OpenXR: Check correct status bit for hand tracking --- modules/openxr/extensions/openxr_hand_tracking_extension.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openxr/extensions/openxr_hand_tracking_extension.cpp b/modules/openxr/extensions/openxr_hand_tracking_extension.cpp index 6d6231f6fa2..ea64f077c5a 100644 --- a/modules/openxr/extensions/openxr_hand_tracking_extension.cpp +++ b/modules/openxr/extensions/openxr_hand_tracking_extension.cpp @@ -297,7 +297,7 @@ void OpenXRHandTrackingExtension::on_process() { godot_tracker->set_hand_joint_radius((XRHandTracker::HandJoint)joint, location.radius); if (joint == XR_HAND_JOINT_PALM_EXT) { - if (location.locationFlags & XR_SPACE_LOCATION_POSITION_TRACKED_BIT) { + if (location.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT) { XrHandTrackingDataSourceStateEXT &data_source = hand_trackers[i].data_source; XRHandTracker::HandTrackingSource source = XRHandTracker::HAND_TRACKING_SOURCE_UNKNOWN;