瀏覽代碼

Fixed code style

Juha-Pekka Arimaa 7 年之前
父節點
當前提交
61c6d35dd2
共有 1 個文件被更改,包括 19 次插入15 次删除
  1. 19 15
      examples/js/loaders/FBXLoader.js

+ 19 - 15
examples/js/loaders/FBXLoader.js

@@ -385,21 +385,25 @@
 
 		texture.wrapS = valueU === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
 		texture.wrapT = valueV === 0 ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping;
-        
-        if ( textureNode.properties.Scaling ) {
-
-            var values = textureNode.properties.Scaling.value
-
-            if ( typeof values === "string" ) {
-                values = values.split(",").map(function(number) {
-                    return parseFloat(number);
-                })
-            }
-            
-            texture.repeat.x = values[0]
-            texture.repeat.y = values[1]
-            
-        }
+
+		if ( textureNode.properties.Scaling ) {
+
+			values = textureNode.properties.Scaling.value;
+
+			if ( typeof values === 'string' ) {
+
+				values = values.split( ',' ).map( function( number ) {
+
+					return parseFloat( number );
+
+				} );
+
+			}
+
+			texture.repeat.x = values[ 0 ];
+			texture.repeat.y = values[ 1 ];
+
+		}
 
 		loader.setPath( currentPath );