浏览代码

Fix typo in OpenXR pose orientation check

(cherry picked from commit cdd9de28a80079bd3f81a8b004e02e8511a03869)
Bastiaan Olij 2 年之前
父节点
当前提交
b39cbe71b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/openxr/scene/openxr_hand.cpp

+ 1 - 1
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();