Merge pull request #95929 from BastiaanOlij/openxr_fix_tracking_bit

OpenXR: Check correct status bit for hand tracking
This commit is contained in:
Rémi Verschelde 2024-08-25 22:24:21 +02:00
commit fe15f47e22
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;