Skip to content

Commit

Permalink
fix different root names
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Mar 12, 2024
1 parent c374435 commit 707278d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/library/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ export const createBoneDirection = (skinMesh) => {
export const renameVRMBones = (vrm) => {
const bones = vrm.humanoid.humanBones;

bones['hips'].node.parent.name = "root";
// // if user didnt define upprChest bone just make sure its not included
if (bones['upperChest'] == null){
// just check if the parent bone of 'neck' is 'chest', this would mean upperChest doesnt exist,
Expand Down

0 comments on commit 707278d

Please sign in to comment.