fix FDM supports autogenerate button sometimes not working correctly
This commit is contained in:
parent
823eb1a251
commit
ee5f4f8573
2 changed files with 4 additions and 11 deletions
src/slic3r/GUI/Gizmos
|
@ -517,14 +517,6 @@ bool GLGizmoFdmSupports::has_backend_supports()
|
||||||
return done;
|
return done;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLGizmoFdmSupports::reslice_FDM_supports(bool postpone_error_messages) const {
|
|
||||||
wxGetApp().CallAfter(
|
|
||||||
[this, postpone_error_messages]() {
|
|
||||||
wxGetApp().plater()->reslice_FFF_until_step(posSupportSpotsSearch,
|
|
||||||
*m_c->selection_info()->model_object(), postpone_error_messages);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
void GLGizmoFdmSupports::auto_generate()
|
void GLGizmoFdmSupports::auto_generate()
|
||||||
{
|
{
|
||||||
ModelObject *mo = m_c->selection_info()->model_object();
|
ModelObject *mo = m_c->selection_info()->model_object();
|
||||||
|
@ -549,8 +541,10 @@ void GLGizmoFdmSupports::auto_generate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxGetApp().CallAfter([this]() {
|
||||||
|
wxGetApp().plater()->reslice_FFF_until_step(posSupportSpotsSearch, *m_c->selection_info()->model_object(), false);
|
||||||
this->waiting_for_autogenerated_supports = true;
|
this->waiting_for_autogenerated_supports = true;
|
||||||
wxGetApp().CallAfter([this]() { reslice_FDM_supports(); });
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,6 @@ private:
|
||||||
|
|
||||||
bool waiting_for_autogenerated_supports = false;
|
bool waiting_for_autogenerated_supports = false;
|
||||||
bool has_backend_supports();
|
bool has_backend_supports();
|
||||||
void reslice_FDM_supports(bool postpone_error_messages = false) const;
|
|
||||||
void auto_generate();
|
void auto_generate();
|
||||||
void apply_data_from_backend();
|
void apply_data_from_backend();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue