mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-13 19:25:59 +08:00
Cut: Fix crash caused by unexpected copy of the cut island (#8598)
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
This commit is contained in:
parent
2547a23135
commit
af61ee38f3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user