Revert of a3324d3e50 - Replaced with a more robust fix

This commit is contained in:
enricoturri1966 2023-01-30 09:34:17 +01:00
parent 66a4b5b82a
commit 1218103fd6
3 changed files with 12 additions and 10 deletions

View file

@ -55,9 +55,11 @@ void GLGizmoHollow::data_changed()
}
const SLAPrintObject* po = m_c->selection_info()->print_object();
std::shared_ptr<const indexed_triangle_set> preview_mesh_ptr = po->get_mesh_to_print();
if (po != nullptr && (!preview_mesh_ptr || preview_mesh_ptr->empty()))
reslice_until_step(slaposAssembly);
if (po != nullptr) {
std::shared_ptr<const indexed_triangle_set> preview_mesh_ptr = po->get_mesh_to_print();
if (!preview_mesh_ptr || preview_mesh_ptr->empty())
reslice_until_step(slaposAssembly);
}
update_volumes();