Browse Source

bugfix: CID was not reset

ncannasse 6 năm trước cách đây
mục cha
commit
142f9142a8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hxd/poly2tri/VisiblePolygon.hx

+ 1 - 1
hxd/poly2tri/VisiblePolygon.hx

@@ -38,7 +38,7 @@ class VisiblePolygon
 		if (!this.triangulated) return null;
 
 		var vertices = new Array();
-		var ids = new Array();
+		var ids = new Map();
 
 		for (i in 0...sweepContext.points.length)
 		{