Code cleanup

This commit is contained in:
Enrico Turri 2019-03-01 10:46:28 +01:00
parent 058468d371
commit 8c3df91f2e
4 changed files with 0 additions and 20 deletions

View file

@ -1997,11 +1997,9 @@ void Plater::priv::schedule_background_process()
this->background_process_timer.Start(500, wxTIMER_ONE_SHOT);
// Notify the Canvas3D that something has changed, so it may invalidate some of the layer editing stuff.
this->view3D->get_canvas3d()->set_config(this->config);
#if ENABLE_NO_GCODE_TOOLPATHS_REGENERATION
// Reset gcode preview
this->preview->get_canvas3d()->reset_volumes();
this->preview->get_canvas3d()->reset_legend_texture();
#endif // ENABLE_NO_GCODE_TOOLPATHS_REGENERATION
}
void Plater::priv::update_print_volume_state()
@ -2266,12 +2264,8 @@ void Plater::priv::set_current_panel(wxPanel* panel)
else if (current_panel == preview)
{
this->q->reslice();
#if ENABLE_NO_GCODE_TOOLPATHS_REGENERATION
// keeps current gcode preview, if any
preview->reload_print(false, true);
#else
preview->reload_print();
#endif // ENABLE_NO_GCODE_TOOLPATHS_REGENERATION
preview->set_canvas_as_dirty();
view_toolbar.select_item("Preview");
}