File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ function Loader( editor ) {
299299
300300 const contents = event . target . result ;
301301
302- const loader = await createGLTFLoader ( ) ;
302+ const loader = await createGLTFLoader ( manager ) ;
303303
304304 loader . parse ( contents , '' , function ( result ) {
305305
@@ -987,7 +987,7 @@ function Loader( editor ) {
987987
988988 }
989989
990- async function createGLTFLoader ( ) {
990+ async function createGLTFLoader ( manager ) {
991991
992992 const { GLTFLoader } = await import ( 'three/addons/loaders/GLTFLoader.js' ) ;
993993 const { DRACOLoader } = await import ( 'three/addons/loaders/DRACOLoader.js' ) ;
@@ -1002,7 +1002,7 @@ function Loader( editor ) {
10021002
10031003 editor . signals . rendererDetectKTX2Support . dispatch ( ktx2Loader ) ;
10041004
1005- const loader = new GLTFLoader ( ) ;
1005+ const loader = new GLTFLoader ( manager ) ;
10061006 loader . setDRACOLoader ( dracoLoader ) ;
10071007 loader . setKTX2Loader ( ktx2Loader ) ;
10081008 loader . setMeshoptDecoder ( MeshoptDecoder ) ;
You can’t perform that action at this time.
0 commit comments