提交 541ad289 编写于 作者: L Lewy Blue

revert removal of try - catch

上级 63688986
......@@ -48,7 +48,21 @@ THREE.FBXLoader = ( function () {
loader.load( url, function ( buffer ) {
onLoad( self.parse( buffer, path ) );
try {
onLoad( self.parse( buffer, path ) );
} catch ( error ) {
setTimeout( function () {
if ( onError ) onError( error );
self.manager.itemError( url );
}, 0 );
}
}, onProgress, onError );
......@@ -301,8 +315,6 @@ THREE.FBXLoader = ( function () {
}
console.log();
if ( typeof content === 'string' ) { // ASCII format
return 'data:' + type + ';base64,' + content;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册