Explorar el Código

ShapeUtils: Fixed undeclared variable.

Mr.doob hace 7 años
padre
commit
4b6766780a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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;