We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6368898 commit 541ad28Copy full SHA for 541ad28
examples/js/loaders/FBXLoader.js
@@ -48,7 +48,21 @@ THREE.FBXLoader = ( function () {
48
49
loader.load( url, function ( buffer ) {
50
51
- onLoad( self.parse( buffer, path ) );
+ 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
+ }
66
67
}, onProgress, onError );
68
@@ -301,8 +315,6 @@ THREE.FBXLoader = ( function () {
301
315
302
316
}
303
317
304
- console.log();
305
-
306
318
if ( typeof content === 'string' ) { // ASCII format
307
319
308
320
return 'data:' + type + ';base64,' + content;
0 commit comments