Make a PlaterWorker to handle PlaterJobs

This commit is contained in:
tamasmeszaros 2021-12-01 11:09:10 +01:00
parent a802bdc764
commit 3be7d5f0dc
3 changed files with 72 additions and 57 deletions

View file

@ -545,8 +545,8 @@ GLGizmoRotate3D::RotoptimzeWindow::RotoptimzeWindow(ImGuiWrapper * imgui,
imgui->disabled_begin(true);
if ( imgui->button(btn_txt) ) {
auto p = wxGetApp().plater();
replace_job<RotoptimizeJob>(*p);
replace_job(wxGetApp().plater()->get_ui_job_worker(),
std::make_unique<RotoptimizeJob>());
}
imgui->disabled_end();