提交 667b7955 编写于 作者: G Garrett Johnson

Fix `this` reference, remove unused variable

上级 5cd646f0
......@@ -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 )
......
......@@ -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 ++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册