From 9a24b08e2890481f25941ba5e9a8a59fcb315d63 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 5 Oct 2021 11:15:03 +0200 Subject: [PATCH] Fixed toolpaths colors when loading a 3mf containing color changes and background process is active --- src/slic3r/GUI/GUI_Preview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index cfe4d6561..a67694541 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -962,10 +962,9 @@ void Preview::load_print_as_fff(bool keep_z_range) if (0 <= type && type < static_cast(GCodeViewer::EViewType::Count)) { m_choice_view_type->SetSelection(type); m_canvas->set_gcode_view_preview_type(static_cast(type)); - if (wxGetApp().is_gcode_viewer()) { + if (wxGetApp().is_gcode_viewer()) m_keep_current_preview_type = true; - refresh_print(); - } + refresh_print(); } } }