fix null end layer bug

This commit is contained in:
Stewart Allen 2018-01-20 22:51:35 -05:00
commit 7e2d6bc060
4 changed files with 7 additions and 4 deletions

View file

@ -1050,7 +1050,7 @@ var gs_base_polygon = exports;
return out;
};
PRO.shortestSegmentLength() {
PRO.shortestSegmentLength = function() {
var len = Infinity;
this.forEachSegment(function(p1, p2) {
len = Math.min(len, p1.distTo2D(p2));