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

Fix XRBodyModifier3D hip driving for avatars no Root bone
This commit is contained in:
Rémi Verschelde 2024-03-24 01:22:50 +01:00
commit 21dc88bf74
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 5 deletions

View File

@ -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. // Assemble the joint relationship to the available skeleton bones.
for (int i = 0; i < XRBodyTracker::JOINT_MAX; i++) { for (int i = 0; i < XRBodyTracker::JOINT_MAX; i++) {
// Get the skeleton bone (skip if not found). // Get the skeleton bone (skip if not found).