浏览代码

Remove unecessary semicolon, and fix comma by semicolon in for loop assignement in MarchingCubes

Tristan Valcke 8 年之前
父节点
当前提交
a85d628ff9
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/MarchingCubes.js

+ 3 - 3
examples/js/MarchingCubes.js

@@ -412,7 +412,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 		}
 
-	};
+	}
 
 	this.begin = function () {
 
@@ -493,8 +493,8 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 		for ( z = min_z; z < max_z; z ++ ) {
 
-			z_offset = this.size2 * z,
-			fz = z / this.size - ballz,
+			z_offset = this.size2 * z;
+			fz = z / this.size - ballz;
 			fz2 = fz * fz;
 
 			for ( y = min_y; y < max_y; y ++ ) {