提交 9020017a 编写于 作者: T Takahiro

Support non-declared buffer.type

上级 1f8fd19d
......@@ -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' );
}
} );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册