mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 15:15:58 +08:00
Fix segfault caused by unchecked mesh precondition
CGALProc::does_bound_a_volume(mesh) can throw if CGAL::is_closed(mesh) is not met affects #8521
This commit is contained in:
parent
f0c1f9ebbd
commit
0681f92130
@ -274,7 +274,7 @@ void CGALMeshDeleter::operator()(CGALMesh *ptr) { delete ptr; }
|
||||
|
||||
bool does_bound_a_volume(const CGALMesh &mesh)
|
||||
{
|
||||
return CGALProc::does_bound_a_volume(mesh.m);
|
||||
return CGAL::is_closed(mesh.m) && CGALProc::does_bound_a_volume(mesh.m);
|
||||
}
|
||||
|
||||
bool empty(const CGALMesh &mesh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user