Browse Source

FBXLoader: Clean up.

Mr.doob 7 years ago
parent
commit
d75c277a48
1 changed files with 6 additions and 1 deletions
  1. 6 1
      examples/js/loaders/FBXLoader.js

+ 6 - 1
examples/js/loaders/FBXLoader.js

@@ -394,12 +394,17 @@ THREE.FBXLoader = ( function () {
 			if ( extension === 'tga' ) {
 
 				var loader = THREE.Loader.Handlers.get( '.tga' );
+
 				if ( loader === null ) {
 
 					console.warn( 'FBXLoader: TGALoader not found, creating empty placeholder texture for', fileName );
 					texture = new THREE.Texture();
 
-				} else texture = loader.load( fileName );
+				} else {
+
+					texture = loader.load( fileName );
+
+				}
 
 			} else if ( extension === 'psd' ) {