Bugfix for segefault on zero support meterial generation

This commit is contained in:
Pshemek 2019-04-04 07:49:41 +00:00 committed by Joseph Lenox
parent 1db87ed41a
commit 22195b3bd7

View File

@ -69,6 +69,10 @@ SupportMaterial::generate(PrintObject *object)
map<coordf_t, Polygons> &contact = contact_overhang.first;
map<coordf_t, Polygons> &overhang = contact_overhang.second;
//bugfix: do not try to generate overhang if there is no contact area
if( contact.empty() )
return;
// Determine the top surfaces of the object. We need these to determine
// the layer heights of support material and to clip support to the object
// silhouette.