summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2022-10-17 20:18:04 +1100
committerBastiaan Olij <mux213@gmail.com>2022-10-17 20:29:19 +1100
commit1e7f00949215702e58526bbdfc92e07e0233e08d (patch)
tree022043e34954403f6225c886dfaa44fb360b6988 /scene/3d
parent0d28820c816fa66b66a98cc6c9df25ff74cbb19f (diff)
Fix two typos in tracker names and a bug in OpenXR haptic feedback
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/xr_nodes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/xr_nodes.cpp b/scene/3d/xr_nodes.cpp
index fe4ccbc7dc..f5d30c584f 100644
--- a/scene/3d/xr_nodes.cpp
+++ b/scene/3d/xr_nodes.cpp
@@ -363,7 +363,7 @@ void XRNode3D::_unbind_tracker() {
}
void XRNode3D::_changed_tracker(const StringName p_tracker_name, int p_tracker_type) {
- if (p_tracker_name == p_tracker_name) {
+ if (tracker_name == p_tracker_name) {
// just in case unref our current tracker
_unbind_tracker();
@@ -373,7 +373,7 @@ void XRNode3D::_changed_tracker(const StringName p_tracker_name, int p_tracker_t
}
void XRNode3D::_removed_tracker(const StringName p_tracker_name, int p_tracker_type) {
- if (p_tracker_name == p_tracker_name) {
+ if (tracker_name == p_tracker_name) {
// unref our tracker, it's no longer available
_unbind_tracker();
}