File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ function Loader( editor ) {
299
299
300
300
const contents = event . target . result ;
301
301
302
- const loader = await createGLTFLoader ( ) ;
302
+ const loader = await createGLTFLoader ( manager ) ;
303
303
304
304
loader . parse ( contents , '' , function ( result ) {
305
305
@@ -987,7 +987,7 @@ function Loader( editor ) {
987
987
988
988
}
989
989
990
- async function createGLTFLoader ( ) {
990
+ async function createGLTFLoader ( manager ) {
991
991
992
992
const { GLTFLoader } = await import ( 'three/addons/loaders/GLTFLoader.js' ) ;
993
993
const { DRACOLoader } = await import ( 'three/addons/loaders/DRACOLoader.js' ) ;
@@ -1002,7 +1002,7 @@ function Loader( editor ) {
1002
1002
1003
1003
editor . signals . rendererDetectKTX2Support . dispatch ( ktx2Loader ) ;
1004
1004
1005
- const loader = new GLTFLoader ( ) ;
1005
+ const loader = new GLTFLoader ( manager ) ;
1006
1006
loader . setDRACOLoader ( dracoLoader ) ;
1007
1007
loader . setKTX2Loader ( ktx2Loader ) ;
1008
1008
loader . setMeshoptDecoder ( MeshoptDecoder ) ;
You can’t perform that action at this time.
0 commit comments