File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/three-vrm/examples/humanoidAnimation Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ function loadVRM( modelUrl ) {
49
49
50
50
loader . register ( ( parser ) => {
51
51
52
- return new VRMLoaderPlugin ( parser , { helperRoot : helperRoot , autoUpdateHumanBones : true } ) ;
52
+ return new VRMLoaderPlugin ( parser , { autoUpdateHumanBones : true } ) ;
53
53
54
54
} ) ;
55
55
@@ -75,10 +75,6 @@ function loadVRM( modelUrl ) {
75
75
76
76
}
77
77
78
- // put the model to the scene
79
- currentVrm = vrm ;
80
- scene . add ( vrm . scene ) ;
81
-
82
78
// Disable frustum culling
83
79
vrm . scene . traverse ( ( obj ) => {
84
80
@@ -93,6 +89,10 @@ function loadVRM( modelUrl ) {
93
89
94
90
} ) ;
95
91
92
+ // put the model to the scene
93
+ currentVrm = vrm ;
94
+ scene . add ( vrm . scene ) ;
95
+
96
96
if ( currentAnimationUrl ) {
97
97
98
98
loadFBX ( currentAnimationUrl ) ;
You can’t perform that action at this time.
0 commit comments