Explorar o código

FBXLoader: Clean up.

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
d75c277a48
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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' ) {