From 2e287c18a460ba5c25b4e9332953de9d18e1a54a Mon Sep 17 00:00:00 2001 From: memelotsqui Date: Tue, 12 Mar 2024 21:21:40 -0600 Subject: [PATCH] fix invalid vrms with rootbone name --- src/library/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library/utils.js b/src/library/utils.js index 41898242..e9e38f8c 100644 --- a/src/library/utils.js +++ b/src/library/utils.js @@ -626,6 +626,7 @@ export const createBoneDirection = (skinMesh) => { export const renameVRMBones = (vrm) => { const bones = vrm.humanoid.humanBones; + bones['hips'].node.parent.name = "rootBone"; // // 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,