Skip to content

Commit

Permalink
add flag for vrm1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xianfei committed Jul 3, 2024
1 parent 7ad49a1 commit d662e4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modelview/modelview.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
margin-left: 5px;
"
>
{{model.type.toUpperCase()}}
{{modeltype.toUpperCase()}}
</div>
<!-- <div
style="display: inline; margin-left: 10px"
Expand Down Expand Up @@ -447,6 +447,7 @@
settings: globalSettings,
loaded: false,
failed: false,
modeltype: args.model.type,
failedText: "加载失败",
},
});
Expand Down Expand Up @@ -632,6 +633,8 @@

if (vrm.meta.metaVersion === "0") {
vrm.scene.rotation.y = Math.PI; // Rotate model 180deg to face camera
} else{
app.modeltype += vrm.meta.metaVersion
}

// vrm.humanoid.getNormalizedBoneNode( 'hips' ).rotation.y = Math.PI;
Expand Down

0 comments on commit d662e4b

Please sign in to comment.