summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-03-15 13:40:44 +1100
committerYuri Sizov <yuris@humnom.net>2023-03-30 19:17:55 +0200
commitb39cbe71b4abd053f2ea86948f3cb6ff6c1c8b9c (patch)
tree205dd3f7ad9589812f6565068ad60ecf9fa210b4 /modules
parent07beae98f04308ebcbaa5f4efc2d5e982b2eda22 (diff)
Fix typo in OpenXR pose orientation check
(cherry picked from commit cdd9de28a80079bd3f81a8b004e02e8511a03869)
Diffstat (limited to 'modules')
-rw-r--r--modules/openxr/scene/openxr_hand.cpp2
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();