mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Synchronize SLA background processing on UI change, so that
the supports disappear if invalidated.
This commit is contained in:
parent
cac56154ef
commit
94b1183843
1 changed files with 3 additions and 10 deletions
|
@ -1771,9 +1771,7 @@ unsigned int Plater::priv::update_background_process()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ptSLA:
|
case ptSLA:
|
||||||
//FIXME as of now the Print::APPLY_STATUS_INVALIDATED is not reliable, and
|
return_state |= UPDATE_BACKGROUND_PROCESS_REFRESH_SCENE;
|
||||||
// currently the scene refresh is expensive and loses selection.
|
|
||||||
//return_state |= UPDATE_BACKGROUND_PROCESS_REFRESH_SCENE;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1984,13 +1982,8 @@ void Plater::priv::on_process_completed(wxCommandEvent &evt)
|
||||||
case ptSLA:
|
case ptSLA:
|
||||||
// Update the SLAPrint from the current Model, so that the reload_scene()
|
// Update the SLAPrint from the current Model, so that the reload_scene()
|
||||||
// pulls the correct data.
|
// pulls the correct data.
|
||||||
|
if (this->update_background_process() & UPDATE_BACKGROUND_PROCESS_RESTART)
|
||||||
// FIXME: SLAPrint::apply is not ready for this. At this stage it would
|
this->schedule_background_process();
|
||||||
// invalidate the previous result and the supports would not be available
|
|
||||||
// for rendering.
|
|
||||||
// if (this->update_background_process() & UPDATE_BACKGROUND_PROCESS_RESTART)
|
|
||||||
// this->schedule_background_process();
|
|
||||||
|
|
||||||
_3DScene::reload_scene(canvas3D, true);
|
_3DScene::reload_scene(canvas3D, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue