fix autogenerate support potins button getting stuck on cancelation

This commit is contained in:
PavelMikus 2023-01-11 15:15:57 +01:00 committed by Pavel Mikuš
parent 9ccb413c02
commit ded8ddd9eb

View File

@ -504,11 +504,17 @@ bool GLGizmoFdmSupports::has_backend_supports()
} }
// find PrintObject with this ID // find PrintObject with this ID
bool done = false;
for (const PrintObject *po : m_parent.fff_print()->objects()) { for (const PrintObject *po : m_parent.fff_print()->objects()) {
if (po->model_object()->id() == mo->id()) if (po->model_object()->id() == mo->id())
return po->is_step_done(posSupportSpotsSearch); done = po->is_step_done(posSupportSpotsSearch);
} }
return false;
if (!done && !wxGetApp().plater()->is_background_process_update_scheduled()) {
waiting_for_autogenerated_supports = false;
}
return done;
} }
void GLGizmoFdmSupports::reslice_FDM_supports(bool postpone_error_messages) const { void GLGizmoFdmSupports::reslice_FDM_supports(bool postpone_error_messages) const {