diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-03-15 13:40:44 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2023-03-15 13:40:44 +1100 |
commit | cdd9de28a80079bd3f81a8b004e02e8511a03869 (patch) | |
tree | b10de499e881a87132b12fc98ec873e1bf33b43b /modules | |
parent | 550a7798510810d238b733a54f69da71b2a2d152 (diff) | |
download | redot-engine-cdd9de28a80079bd3f81a8b004e02e8511a03869.tar.gz |
Fix typo in OpenXR pose orientation check
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openxr/scene/openxr_hand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openxr/scene/openxr_hand.cpp b/modules/openxr/scene/openxr_hand.cpp index e4bd2dab52..e341d2b1d4 100644 --- a/modules/openxr/scene/openxr_hand.cpp +++ b/modules/openxr/scene/openxr_hand.cpp @@ -216,7 +216,7 @@ void OpenXRHand::_update_skeleton() { const auto &pose = location.pose; if (location.locationFlags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT) { - if (pose.orientation.x != 0 || pose.orientation.y != 0 || pose.orientation.y != 0 || pose.orientation.w != 0) { + if (pose.orientation.x != 0 || pose.orientation.y != 0 || pose.orientation.z != 0 || pose.orientation.w != 0) { quaternions[i] = Quaternion(pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w); inv_quaternions[i] = quaternions[i].inverse(); |