Browse Source

ShapeUtils: Fixed undeclared variable.

Mr.doob 7 years ago
parent
commit
4b6766780a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extras/ShapeUtils.js

+ 2 - 1
src/extras/ShapeUtils.js

@@ -41,9 +41,10 @@ var ShapeUtils = {
 		//
 
 		var holeIndex = contour.length;
+
 		holes.forEach( removeDupEndPts );
 
-		for ( i = 0; i < holes.length; i ++ ) {
+		for ( var i = 0; i < holes.length; i ++ ) {
 
 			holeIndices.push( holeIndex );
 			holeIndex += holes[ i ].length;