fix autogenerate support potins button getting stuck on cancelation
This commit is contained in:
parent
9ccb413c02
commit
ded8ddd9eb
1 changed files with 11 additions and 5 deletions
|
@ -497,18 +497,24 @@ void GLGizmoFdmSupports::update_from_model_object()
|
|||
|
||||
bool GLGizmoFdmSupports::has_backend_supports()
|
||||
{
|
||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
||||
if (! mo) {
|
||||
const ModelObject *mo = m_c->selection_info()->model_object();
|
||||
if (!mo) {
|
||||
waiting_for_autogenerated_supports = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
// find PrintObject with this ID
|
||||
for (const PrintObject* po : m_parent.fff_print()->objects()) {
|
||||
bool done = false;
|
||||
for (const PrintObject *po : m_parent.fff_print()->objects()) {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue