浏览代码

Minor tweaks.

Mr.doob 11 年之前
父节点
当前提交
d43dd3868a
共有 3 个文件被更改,包括 4 次插入6 次删除
  1. 2 2
      examples/webgl_buffergeometry.html
  2. 2 2
      examples/webgl_buffergeometry_uint.html
  3. 0 2
      src/core/Geometry.js

+ 2 - 2
examples/webgl_buffergeometry.html

@@ -217,8 +217,8 @@
 				geometry.computeBoundingSphere();
 
 				var material = new THREE.MeshPhongMaterial( {
-						color: 0xaaaaaa, ambient: 0xaaaaaa, specular: 0xffffff, shininess: 250,
-						side: THREE.DoubleSide, vertexColors: THREE.VertexColors
+					color: 0xaaaaaa, ambient: 0xaaaaaa, specular: 0xffffff, shininess: 250,
+					side: THREE.DoubleSide, vertexColors: THREE.VertexColors
 				} );
 
 				mesh = new THREE.Mesh( geometry, material );

+ 2 - 2
examples/webgl_buffergeometry_uint.html

@@ -198,8 +198,8 @@
 				geometry.computeBoundingSphere();
 
 				var material = new THREE.MeshPhongMaterial( {
-						color: 0xaaaaaa, ambient: 0xaaaaaa, specular: 0xffffff, shininess: 250,
-						side: THREE.DoubleSide, vertexColors: THREE.VertexColors
+					color: 0xaaaaaa, ambient: 0xaaaaaa, specular: 0xffffff, shininess: 250,
+					side: THREE.DoubleSide, vertexColors: THREE.VertexColors
 				} );
 
 				mesh = new THREE.Mesh( geometry, material );

+ 0 - 2
src/core/Geometry.js

@@ -147,8 +147,6 @@ THREE.Geometry.prototype = {
 
 		if ( indices !== undefined ) {
 
-			var indices = attributes.index.array;
-
 			for ( var i = 0; i < indices.length; i += 3 ) {
 
 				addFace( indices[ i ], indices[ i + 1 ], indices[ i + 2 ] );