mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 11:45:53 +08:00
fix autogenerate support potins button getting stuck on cancelation
This commit is contained in:
parent
9ccb413c02
commit
ded8ddd9eb
@ -497,18 +497,24 @@ void GLGizmoFdmSupports::update_from_model_object()
|
|||||||
|
|
||||||
bool GLGizmoFdmSupports::has_backend_supports()
|
bool GLGizmoFdmSupports::has_backend_supports()
|
||||||
{
|
{
|
||||||
const ModelObject* mo = m_c->selection_info()->model_object();
|
const ModelObject *mo = m_c->selection_info()->model_object();
|
||||||
if (! mo) {
|
if (!mo) {
|
||||||
waiting_for_autogenerated_supports = false;
|
waiting_for_autogenerated_supports = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// find PrintObject with this ID
|
// 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())
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user