Skip to content

Commit 61706b1

Browse files
authored
Update Loader.js
#27336
1 parent 73c996c commit 61706b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

editor/js/Loader.js

+3-3
Original file line numberDiff line numberDiff 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 );

0 commit comments

Comments
 (0)