summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalcolm Nixon <Malcolm.nixon@gmail.com>2024-03-20 23:56:10 -0400
committerMalcolm Nixon <Malcolm.nixon@gmail.com>2024-03-20 23:56:10 -0400
commit435eb06e4b29cd3c83a3a9c39f2fc95ba4215b2f (patch)
tree36746560b694f9b42e5eb78371713186556b95e1
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-435eb06e4b29cd3c83a3a9c39f2fc95ba4215b2f.tar.gz
Fix for avatars without a root bone.
-rw-r--r--scene/3d/xr_body_modifier_3d.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/3d/xr_body_modifier_3d.cpp b/scene/3d/xr_body_modifier_3d.cpp
index 477241947a..ac648d66d0 100644
--- a/scene/3d/xr_body_modifier_3d.cpp
+++ b/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).