Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Nov 2, 2023
1 parent 24a63fc commit 10f65ff
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/library/load-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ export const loadVRM = async(url) => {
const gltfLoader = new GLTFLoader()
gltfLoader.crossOrigin = 'anonymous';
gltfLoader.register((parser) => {
//return new VRMLoaderPlugin(parser, {autoUpdateHumanBones: true, helperRoot:vrmHelperRoot})
return new VRMLoaderPlugin(parser, {autoUpdateHumanBones: true})
})
// rotate?

const vrm = await gltfLoader.loadAsync(url);
console.log(vrm);
if (vrm.userData?.vrmMeta?.metaVersion === '0'){
vrm.scene.rotation.y = Math.PI;
vrm.scene.traverse((child)=>{
Expand All @@ -31,13 +28,9 @@ export const loadVRM = async(url) => {
export const addVRMToScene = (vrm, scene) => {
const vrmData = vrm.userData.vrm;
renameVRMBones(vrmData);
console.log(vrmData);

if (vrm && scene){
console.log("add to scene")
scene.attach(vrm.scene)


}
}

0 comments on commit 10f65ff

Please sign in to comment.