Fix crash when changing hollowing thickness

This commit is contained in:
tamasmeszaros 2023-01-17 17:18:29 +01:00
parent 57bdd8df6f
commit 53287002b3

View file

@ -349,6 +349,7 @@ void SLAPrint::Steps::mesh_assembly(SLAPrintObject &po)
void SLAPrint::Steps::hollow_model(SLAPrintObject &po)
{
po.m_hollowing_data.reset();
po.m_supportdata.reset();
clear_csg(po.m_mesh_to_slice, slaposDrillHoles);
clear_csg(po.m_mesh_to_slice, slaposHollowing);
@ -400,6 +401,7 @@ void SLAPrint::Steps::hollow_model(SLAPrintObject &po)
// Drill holes into the hollowed/original mesh.
void SLAPrint::Steps::drill_holes(SLAPrintObject &po)
{
po.m_supportdata.reset();
clear_csg(po.m_mesh_to_slice, slaposDrillHoles);
csg::model_to_csgmesh(*po.model_object(), po.trafo(),