summaryrefslogtreecommitdiffstats
path: root/modules/webxr
diff options
context:
space:
mode:
authorMalcolm Nixon <Malcolm.nixon@gmail.com>2024-04-24 19:57:57 -0400
committerMalcolm Nixon <Malcolm.nixon@gmail.com>2024-04-25 19:38:57 -0400
commite00e5c03866be37bfe77ff66948d59a7a08bb0d2 (patch)
treec68b381709655b12ed3f5e79a52c03479cabdee8 /modules/webxr
parent4bca2d8bc64e84a764ee656b9c42443b24448f53 (diff)
downloadredot-engine-e00e5c03866be37bfe77ff66948d59a7a08bb0d2.tar.gz
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>
Diffstat (limited to 'modules/webxr')
-rw-r--r--modules/webxr/webxr_interface_js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webxr/webxr_interface_js.cpp b/modules/webxr/webxr_interface_js.cpp
index 535d464d6f..45c1d8ec06 100644
--- a/modules/webxr/webxr_interface_js.cpp
+++ b/modules/webxr/webxr_interface_js.cpp
@@ -713,7 +713,7 @@ void WebXRInterfaceJS::_update_input_source(int p_input_source_id) {
if (unlikely(hand_tracker.is_null())) {
hand_tracker.instantiate();
- hand_tracker->set_hand(p_input_source_id == 0 ? XRHandTracker::HAND_LEFT : XRHandTracker::HAND_RIGHT);
+ hand_tracker->set_tracker_hand(p_input_source_id == 0 ? XRPositionalTracker::TRACKER_HAND_LEFT : XRPositionalTracker::TRACKER_HAND_RIGHT);
hand_tracker->set_tracker_name(p_input_source_id == 0 ? "/user/hand_tracker/left" : "/user/hand_tracker/right");
// These flags always apply, since WebXR doesn't give us enough insight to be more fine grained.