Browse Source

Fix `this` reference, remove unused variable

Garrett Johnson 7 years ago
parent
commit
667b79555e
2 changed files with 1 additions and 2 deletions
  1. 0 1
      examples/js/Volume.js
  2. 1 1
      examples/js/modifiers/SimplifyModifier.js

+ 0 - 1
examples/js/Volume.js

@@ -357,7 +357,6 @@ THREE.Volume.prototype = {
 
 		} );
 		var argumentsWithInversion = [ 'volume.xLength-1-', 'volume.yLength-1-', 'volume.zLength-1-' ];
-		var arguments = [ 'i', 'j', 'k' ];
 		var argArray = [ iDirection, jDirection, kDirection ].map( function( direction, n ) {
 
 			return ( direction.dot( base[ n ] ) > 0 ? '' : argumentsWithInversion[ n ] ) + ( direction === axisInIJK ? 'IJKIndex' : direction.argVar )

+ 1 - 1
examples/js/modifiers/SimplifyModifier.js

@@ -167,7 +167,7 @@ THREE.SimplifyModifier = function () {};
 		if ( f.v3 ) removeFromArray( f.v3.faces, f );
 
 		// TODO optimize this!
-		var vs = [ this.v1, this.v2, this.v3 ];
+		var vs = [ f.v1, f.v2, f.v3 ];
 		var v1, v2;
 
 		for ( var i = 0; i < 3; i ++ ) {