Fix of support generator regression agains 2.1.0-alpha1.
https://github.com/prusa3d/PrusaSlicer/issues/2810 https://github.com/prusa3d/PrusaSlicer/issues/2808
This commit is contained in:
parent
c725fd4ed5
commit
ceae7b4889
1 changed files with 2 additions and 1 deletions
|
@ -290,9 +290,10 @@ void EdgeGrid::Grid::create_from_m_contours(coord_t resolution)
|
||||||
size_t j;
|
size_t j;
|
||||||
} visitor(m_cell_data, m_cells, m_cols);
|
} visitor(m_cell_data, m_cells, m_cols);
|
||||||
|
|
||||||
|
assert(visitor.i == 0);
|
||||||
for (; visitor.i < m_contours.size(); ++ visitor.i) {
|
for (; visitor.i < m_contours.size(); ++ visitor.i) {
|
||||||
const Slic3r::Points &pts = *m_contours[visitor.i];
|
const Slic3r::Points &pts = *m_contours[visitor.i];
|
||||||
for (; visitor.j < pts.size(); ++ visitor.j)
|
for (visitor.j = 0; visitor.j < pts.size(); ++ visitor.j)
|
||||||
this->visit_cells_intersecting_line(pts[visitor.j], pts[(visitor.j + 1 == pts.size()) ? 0 : visitor.j + 1], visitor);
|
this->visit_cells_intersecting_line(pts[visitor.j], pts[(visitor.j + 1 == pts.size()) ? 0 : visitor.j + 1], visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue