소스 검색

Merge pull request #89727 from Malcolmnixon/fix-avatars-without-root-bone

Fix XRBodyModifier3D hip driving for avatars no Root bone
Rémi Verschelde 1 년 전
부모
커밋
21dc88bf74
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      scene/3d/xr_body_modifier_3d.cpp

+ 0 - 5
scene/3d/xr_body_modifier_3d.cpp

@@ -252,11 +252,6 @@ void XRBodyModifier3D::_get_joint_data() {
 		}
 	}
 
-	// If the root bone is not found then use the skeleton root bone.
-	if (bones[XRBodyTracker::JOINT_ROOT] == -1) {
-		bones[XRBodyTracker::JOINT_ROOT] = 0;
-	}
-
 	// Assemble the joint relationship to the available skeleton bones.
 	for (int i = 0; i < XRBodyTracker::JOINT_MAX; i++) {
 		// Get the skeleton bone (skip if not found).