From 0a5ee00af94ba3bf680b3b4a417e2f613a31014a Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Mon, 23 Oct 2023 21:01:54 -0600 Subject: [PATCH] remove bone modifications --- src/library/merge-geometry.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/library/merge-geometry.js b/src/library/merge-geometry.js index 1895227f..91651960 100644 --- a/src/library/merge-geometry.js +++ b/src/library/merge-geometry.js @@ -64,14 +64,10 @@ function createMergedSkeleton(meshes, scale){ if (boneArr.indexOf(bone)!==-1){ const clone = boneClones.get(bone.name) if (clone == null){ // no clone was found with the bone - const newBone= bone.clone(false); - if (bone.name == 'hips') - newBone.scale.set(0.7,0.7,0.7); - newBone.position.set(newBone.x*0.7,newBone.y*0.7,newBone.z*0.7) const boneData = { index, boneInverses:mesh.skeleton.boneInverses[boneInd], - bone:newBone, + bone: bone.clone(false), parentName: bone.parent?.type == "Bone" ? bone.parent.name:null } index++