Browse Source

ShapeUtils: Fixed undeclared variable.

Mr.doob 7 năm trước cách đây
mục cha
commit
4b6766780a
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;