mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:21:49 +08:00
Fix crash with some models after hole drilling
This commit is contained in:
parent
29544c0d3d
commit
5e3da340ae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user