Fixed toolpaths colors when loading a 3mf containing color changes and background process is active

This commit is contained in:
enricoturri1966 2021-10-05 11:15:03 +02:00
parent e2f2ed4172
commit 9a24b08e28

View File

@ -962,10 +962,9 @@ void Preview::load_print_as_fff(bool keep_z_range)
if (0 <= type && type < static_cast<int>(GCodeViewer::EViewType::Count)) { if (0 <= type && type < static_cast<int>(GCodeViewer::EViewType::Count)) {
m_choice_view_type->SetSelection(type); m_choice_view_type->SetSelection(type);
m_canvas->set_gcode_view_preview_type(static_cast<GCodeViewer::EViewType>(type)); m_canvas->set_gcode_view_preview_type(static_cast<GCodeViewer::EViewType>(type));
if (wxGetApp().is_gcode_viewer()) { if (wxGetApp().is_gcode_viewer())
m_keep_current_preview_type = true; m_keep_current_preview_type = true;
refresh_print(); refresh_print();
}
} }
} }
} }