From 94b1183843853cf27a6d8e8735a222aae1331913 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 22 Nov 2018 12:42:17 +0100 Subject: [PATCH] Synchronize SLA background processing on UI change, so that the supports disappear if invalidated. --- src/slic3r/GUI/Plater.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index cb5254f6a..0dcc61542 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1771,9 +1771,7 @@ unsigned int Plater::priv::update_background_process() } break; case ptSLA: - //FIXME as of now the Print::APPLY_STATUS_INVALIDATED is not reliable, and - // currently the scene refresh is expensive and loses selection. - //return_state |= UPDATE_BACKGROUND_PROCESS_REFRESH_SCENE; + return_state |= UPDATE_BACKGROUND_PROCESS_REFRESH_SCENE; break; } } @@ -1984,13 +1982,8 @@ void Plater::priv::on_process_completed(wxCommandEvent &evt) case ptSLA: // Update the SLAPrint from the current Model, so that the reload_scene() // pulls the correct data. - - // FIXME: SLAPrint::apply is not ready for this. At this stage it would - // 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(); - + if (this->update_background_process() & UPDATE_BACKGROUND_PROCESS_RESTART) + this->schedule_background_process(); _3DScene::reload_scene(canvas3D, true); break; }