Skip to content

Commit

Permalink
Try to load unknown textures in FBXLoader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Avaer Kazmer committed Nov 27, 2019
1 parent eb7e130 commit ab300a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions FBXLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ THREE.FBXLoader = ( function () {
if ( loader === null ) {

console.warn( 'FBXLoader: TGA loader not found, creating placeholder texture for', textureNode.RelativeFilename );
texture = new THREE.Texture();
// texture = new THREE.Texture();
texture = this.textureLoader.load( fileName );

} else {

Expand All @@ -395,7 +396,8 @@ THREE.FBXLoader = ( function () {
} else if ( extension === 'psd' ) {

console.warn( 'FBXLoader: PSD textures are not supported, creating placeholder texture for', textureNode.RelativeFilename );
texture = new THREE.Texture();
// texture = new THREE.Texture();
texture = this.textureLoader.load( fileName );

} else {

Expand Down

0 comments on commit ab300a8

Please sign in to comment.