Browse Source

Minor tweaks.

Mr.doob 11 years ago
parent
commit
d43dd3868a

+ 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 ] );