Hollowing gizmo can now trigger the backend calculation

This commit is contained in:
Lukas Matena 2020-01-23 11:22:06 +01:00
parent d58ee47e4d
commit 1c0aedbbe5
5 changed files with 25 additions and 4 deletions

View file

@ -608,10 +608,14 @@ void GLGizmoHollow::update_mesh_raycaster(std::unique_ptr<MeshRaycaster> &&rc)
m_c->m_volume_with_cavity.reset();
}
void GLGizmoHollow::hollow_mesh()
void GLGizmoHollow::hollow_mesh(bool postpone_error_messages)
{
// Trigger a UI job to hollow the mesh.
wxGetApp().plater()->hollow();
// wxGetApp().plater()->hollow();
wxGetApp().CallAfter([this, postpone_error_messages]() {
wxGetApp().plater()->reslice_SLA_hollowing(*m_c->m_model_object, postpone_error_messages);
});
}