mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #95929 from BastiaanOlij/openxr_fix_tracking_bit
OpenXR: Check correct status bit for hand tracking
This commit is contained in:
commit
fe15f47e22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user