mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Do not regenerate existing gcode preview toolpaths when switching to Preview
This commit is contained in:
parent
e03199d989
commit
058468d371
4 changed files with 30 additions and 3 deletions
|
@ -1997,6 +1997,11 @@ 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()
|
||||
|
@ -2261,7 +2266,12 @@ 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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue