浏览代码

Merge pull request #6398 from Lowfab/feature/fixMinifiedBuildErrors

Fix build errors (three.min.js)
Ricardo Cabello 10 年之前
父节点
当前提交
9de200f1ed
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/extras/geometries/SphereBufferGeometry.js
  2. 1 1
      src/math/Matrix3.js
  3. 1 1
      src/math/Matrix4.js

+ 2 - 2
src/extras/geometries/SphereBufferGeometry.js

@@ -40,7 +40,7 @@ THREE.SphereBufferGeometry = function ( radius, widthSegments, heightSegments, p
 	var uvs = new THREE.InterleavedBufferAttribute( vertexBuffer, 2, 6 );
 	this.addAttribute( 'uv', uvs );
 
-	var x, y, u, v, px, py, px, index = 0, vertices = [], normal = new THREE.Vector3();
+	var x, y, u, v, px, py, pz, index = 0, vertices = [], normal = new THREE.Vector3();
 
 	for ( y = 0; y <= heightSegments; y ++ ) {
 
@@ -73,7 +73,7 @@ THREE.SphereBufferGeometry = function ( radius, widthSegments, heightSegments, p
 	}
 
 	var indices = [];
-	
+	var ul;
 	for ( y = 0, ul = heightSegments - 1; y < ul; y++ ) {
 
 		for ( x = 0; x < widthSegments; x++ ) {

+ 1 - 1
src/math/Matrix3.js

@@ -134,7 +134,7 @@ THREE.Matrix3.prototype = {
 
 			}
 
-			return array;
+			return buffer;
 
 		};
 

+ 1 - 1
src/math/Matrix4.js

@@ -517,7 +517,7 @@ THREE.Matrix4.prototype = {
 
 			}
 
-			return array;
+			return buffer;
 
 		};