Skip to content

Commit

Permalink
console added vrm0 file
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Oct 28, 2023
1 parent 365f23c commit 883a8be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ export default function Selector({confirmDialog, templateInfo, animationManager,
createBoneDirection(child)
if (vrm.meta?.metaVersion === '0'){
VRMUtils.rotateVRM0( vrm );
console.log("Loaded VRM0 file ", vrm);
for (let i =0; i < child.skeleton.bones.length;i++){
child.skeleton.bones[i].userData.vrm0RestPosition = { ... child.skeleton.bones[i].position }
}
Expand Down

0 comments on commit 883a8be

Please sign in to comment.