fix infinite loop

supermerill/SuperSlicer#1711
This commit is contained in:
supermerill 2021-10-26 22:39:49 +02:00
parent 4ecf37161b
commit a166f37e4f

View File

@ -213,7 +213,7 @@ ExPolygon::remove_point_too_near(const coord_t tolerance) {
//go to next one
//if you removed a point, it check if the next one isn't too near from the previous one.
// if not, it byepass it.
if (newdist > tolerance_sq) {
if (newdist >= tolerance_sq) {
++id;
}
}