Skip to content

Commit

Permalink
GLTFLoader: Clean up (mrdoob#23633)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored and abernier committed Sep 16, 2022
1 parent 8113cf1 commit f265cb2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2904,15 +2904,7 @@ class GLTFParser {

if ( this.sourceCache[ sourceIndex ] !== undefined ) {

return this.sourceCache[ sourceIndex ].then( function ( texture ) {

return texture.clone();

} ).catch( function ( error ) {

throw error;

} );
return this.sourceCache[ sourceIndex ].then( ( texture ) => texture.clone() );

}

Expand Down

0 comments on commit f265cb2

Please sign in to comment.