ENABLE_GCODE_VIEWER_AS_STATE -> Fixed toolpaths visualization when switching between states and when exporting g-code

This commit is contained in:
enricoturri1966 2020-06-22 11:49:58 +02:00
parent 2a90cd2849
commit dc6f97a6ad
4 changed files with 32 additions and 4 deletions

View file

@ -1414,6 +1414,7 @@ void MainFrame::set_mode(EMode mode)
#endif // ENABLE_LAYOUT_NO_RESTART
m_plater->reset();
m_plater->reset_gcode_toolpaths();
m_plater->Freeze();
@ -1457,6 +1458,7 @@ void MainFrame::set_mode(EMode mode)
m_plater->reset();
m_plater->reset_last_loaded_gcode();
m_plater->reset_gcode_toolpaths();
m_plater->Freeze();