mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 09:11:50 +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;
|
int i = 0;
|
||||||
Vec3i facet;
|
Vec3i facet;
|
||||||
for (auto v : vtc) {
|
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;
|
facet(i++) = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user