1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-15 08:44:26 +00:00

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
+2 -4
View File
@@ -510,11 +510,9 @@ void Preview::reload_print(bool keep_volumes)
!keep_volumes)
{
m_canvas->reset_volumes();
#if ENABLE_GCODE_VIEWER
m_canvas->reset_gcode_toolpaths();
#else
#if !ENABLE_GCODE_VIEWER
m_canvas->reset_legend_texture();
#endif // ENABLE_GCODE_VIEWER
#endif // !ENABLE_GCODE_VIEWER
m_loaded = false;
#ifdef __linux__
m_volumes_cleanup_required = false;