Fix of #11191 (SPE-1851): Shells in preview show when they shouldn't

This commit is contained in:
Lukas Matena 2023-08-30 09:35:23 +02:00
parent 54c091cbc9
commit a89860d7d3

View File

@ -3998,6 +3998,7 @@ void Plater::priv::set_current_panel(wxPanel* panel)
bool model_fits = view3D->get_canvas3d()->check_volumes_outside_state() != ModelInstancePVS_Partly_Outside;
if (!model.objects.empty() && !export_in_progress && model_fits) {
preview->get_canvas3d()->init_gcode_viewer();
if (! this->background_process.finished())
preview->load_gcode_shells();
q->reslice();
}