mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Fix crash with some models after hole drilling
This commit is contained in:
@@ -159,7 +159,7 @@ template<class _Mesh> TriangleMesh cgal_to_triangle_mesh(const _Mesh &cgalmesh)
|
||||
int i = 0;
|
||||
Vec3i facet;
|
||||
for (auto v : vtc) {
|
||||
if (i > 2) { i = 0; break; }
|
||||
if (i > 2 || v < 0 || v >= cgalmesh.vertices().size()) { i = 0; break; }
|
||||
facet(i++) = v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user