Skip to content

Commit 24a2509

Browse files
authored
GLTFLoader: add parseAsync (#22754)
1 parent 7701411 commit 24a2509

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/jsm/loaders/GLTFLoader.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,18 @@ class GLTFLoader extends Loader {
385385

386386
}
387387

388+
parseAsync( data, path ) {
389+
390+
const scope = this;
391+
392+
return new Promise( function ( resolve, reject ) {
393+
394+
scope.parse( data, path, resolve, reject );
395+
396+
} );
397+
398+
}
399+
388400
}
389401

390402
/* GLTFREGISTRY */

0 commit comments

Comments
 (0)