1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Remove the Hand enum from XRHandTracker to fix name-collision with the hand property of the base class.

Co-Authored-By: David Snopek <191561+dsnopek@users.noreply.github.com>
This commit is contained in:
Malcolm Nixon
2024-04-24 19:57:57 -04:00
parent 4bca2d8bc6
commit e00e5c0386
5 changed files with 6 additions and 84 deletions

View File

@@ -195,7 +195,7 @@ void OpenXRHandTrackingExtension::on_process() {
Ref<XRHandTracker> godot_tracker;
godot_tracker.instantiate();
godot_tracker->set_hand(i == 0 ? XRHandTracker::HAND_LEFT : XRHandTracker::HAND_RIGHT);
godot_tracker->set_tracker_hand(i == 0 ? XRPositionalTracker::TRACKER_HAND_LEFT : XRPositionalTracker::TRACKER_HAND_RIGHT);
godot_tracker->set_tracker_name(i == 0 ? "/user/hand_tracker/left" : "/user/hand_tracker/right");
XRServer::get_singleton()->add_tracker(godot_tracker);
hand_trackers[i].godot_tracker = godot_tracker;