make sure inner loop has length > 0 during shifting

This commit is contained in:
PavelMikus 2022-08-24 12:38:04 +02:00
parent 3db64a7ad3
commit af7ebbfab6

View File

@ -1637,7 +1637,7 @@ void SeamPlacer::place_seam(const Layer *layer, ExtrusionLoop &loop, bool extern
seam_point = projected_point.foot_pt;
//lastly, for internal perimeters, do the shifting if needed
if (po->config().shifted_inner_seams) {
if (po->config().shifted_inner_seams && loop.length() > 0.0) {
//fix depth, it is sometimes strongly underestimated
depth = std::max(loop.paths[projected_point.path_idx].width, depth);