Skip to content

Commit 541ad28

Browse files
committed
revert removal of try - catch
1 parent 6368898 commit 541ad28

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

examples/js/loaders/FBXLoader.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,21 @@ THREE.FBXLoader = ( function () {
4848

4949
loader.load( url, function ( buffer ) {
5050

51-
onLoad( self.parse( buffer, path ) );
51+
try {
52+
53+
onLoad( self.parse( buffer, path ) );
54+
55+
} catch ( error ) {
56+
57+
setTimeout( function () {
58+
59+
if ( onError ) onError( error );
60+
61+
self.manager.itemError( url );
62+
63+
}, 0 );
64+
65+
}
5266

5367
}, onProgress, onError );
5468

@@ -301,8 +315,6 @@ THREE.FBXLoader = ( function () {
301315

302316
}
303317

304-
console.log();
305-
306318
if ( typeof content === 'string' ) { // ASCII format
307319

308320
return 'data:' + type + ';base64,' + content;

0 commit comments

Comments
 (0)