Skip to content

Commit

Permalink
Cut: Fix crash caused by unexpected copy of the cut island (#8598)
Browse files Browse the repository at this point in the history
Cut: Fix crash caused by unexpected copy of the cut island (#8579)

which frees the OpenGL VBOs and IBOs when loop ends and cause the crash
  • Loading branch information
Noisyfox authored Mar 1, 2025
1 parent 2547a23 commit af61ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/MeshUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ std::vector<Vec3d> MeshClipper::point_per_contour() const {
return out;
}
assert(m_result);
for (auto isl : m_result->cut_islands) {
for (const auto& isl : m_result->cut_islands) {
assert(isl.expoly.contour.size() > 2);
// Now return a point lying inside the contour but not in a hole.
// We do this by taking a point lying close to the edge, repeating
Expand Down

0 comments on commit af61ee3

Please sign in to comment.