浏览代码

FBXLoader: Clean up.

Mr.doob 7 年之前
父节点
当前提交
d75c277a48
共有 1 个文件被更改,包括 6 次插入1 次删除
  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' ) {
 			if ( extension === 'tga' ) {
 
 
 				var loader = THREE.Loader.Handlers.get( '.tga' );
 				var loader = THREE.Loader.Handlers.get( '.tga' );
+
 				if ( loader === null ) {
 				if ( loader === null ) {
 
 
 					console.warn( 'FBXLoader: TGALoader not found, creating empty placeholder texture for', fileName );
 					console.warn( 'FBXLoader: TGALoader not found, creating empty placeholder texture for', fileName );
 					texture = new THREE.Texture();
 					texture = new THREE.Texture();
 
 
-				} else texture = loader.load( fileName );
+				} else {
+
+					texture = loader.load( fileName );
+
+				}
 
 
 			} else if ( extension === 'psd' ) {
 			} else if ( extension === 'psd' ) {