GCodeViewer -> Fixed bottom panel not disappearing when switching to gcode viewer from preview

This commit is contained in:
enricoturri1966 2020-06-09 12:44:22 +02:00
parent 48cc358b72
commit 4c51a258ef

View file

@ -2708,6 +2708,10 @@ void Plater::priv::reset()
if (view3D->is_layers_editing_enabled())
view3D->enable_layers_editing(false);
#if ENABLE_GCODE_VIEWER_AS_STATE
gcode_result.reset();
#endif // ENABLE_GCODE_VIEWER_AS_STATE
// Stop and reset the Print content.
this->background_process.reset();
model.clear_objects();
@ -2720,10 +2724,6 @@ void Plater::priv::reset()
this->sidebar->show_sliced_info_sizer(false);
model.custom_gcode_per_print_z.gcodes.clear();
#if ENABLE_GCODE_VIEWER_AS_STATE
gcode_result.reset();
#endif // ENABLE_GCODE_VIEWER_AS_STATE
}
void Plater::priv::mirror(Axis axis)