Skip to content

Commit

Permalink
remove bone modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 24, 2023
1 parent 2126689 commit 0a5ee00
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/library/merge-geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down

0 comments on commit 0a5ee00

Please sign in to comment.