work around faulty tab segment length detection

This commit is contained in:
Stewart Allen 2017-04-22 10:30:56 -04:00
commit 2c2b518b57

View file

@ -635,12 +635,10 @@ var gs_base_polygon = exports;
} }
poly.setOpen(); poly.setOpen();
poly.push(i1); poly.push(i1);
if (delta < this.length / 2) { this.forEachPoint(function(p, pos) {
this.forEachPoint(function(p, pos) { poly.push(p);
poly.push(p); if (p === i2.p1) return true;
if (p === i2.p1) return true; }, true, start);
}, true, start);
}
poly.push(i2); poly.push(i2);
return poly; return poly;
}; };