diff --git a/examples/js/loaders/GLTFLoader.js b/examples/js/loaders/GLTFLoader.js index db614c75c749ede2622bd88940e66d842196a661..08355c4b280b6de81093a70d564290ed46f80fca 100644 --- a/examples/js/loaders/GLTFLoader.js +++ b/examples/js/loaders/GLTFLoader.js @@ -694,7 +694,7 @@ THREE.GLTFLoader = ( function () { return _each( json.buffers, function ( buffer ) { - if ( buffer.type === 'arraybuffer' ) { + if ( buffer.type === 'arraybuffer' || buffer.type === undefined ) { return new Promise( function ( resolve ) { @@ -708,6 +708,10 @@ THREE.GLTFLoader = ( function () { } ); + } else { + + console.warn( 'THREE.GLTFLoader: ' + buffer.type + ' buffer type is not supported' ); + } } );