mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Follow-up of dc6f97a6ad
-> Fixed toolpaths visualization when new slicing is required
This commit is contained in:
parent
7207f215e9
commit
289f7a14a0
3 changed files with 14 additions and 5 deletions
|
@ -510,9 +510,11 @@ void Preview::reload_print(bool keep_volumes)
|
|||
!keep_volumes)
|
||||
{
|
||||
m_canvas->reset_volumes();
|
||||
#if !ENABLE_GCODE_VIEWER
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_canvas->reset_gcode_toolpaths();
|
||||
#else
|
||||
m_canvas->reset_legend_texture();
|
||||
#endif // !ENABLE_GCODE_VIEWER
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
m_loaded = false;
|
||||
#ifdef __linux__
|
||||
m_volumes_cleanup_required = false;
|
||||
|
@ -761,7 +763,7 @@ void Preview::on_checkbox_legend(wxCommandEvent& evt)
|
|||
}
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
|
||||
void Preview::update_view_type(bool slice_completed)
|
||||
void Preview::update_view_type(bool keep_volumes)
|
||||
{
|
||||
const DynamicPrintConfig& config = wxGetApp().preset_bundle->project_config;
|
||||
|
||||
|
@ -785,7 +787,11 @@ void Preview::update_view_type(bool slice_completed)
|
|||
m_preferred_color_mode = "feature";
|
||||
}
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
reload_print(keep_volumes);
|
||||
#else
|
||||
reload_print();
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
}
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue