From dac00582ae434fad0054fe8e8ff506b1a727ab99 Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 17 Jan 2025 21:19:38 +0800 Subject: [PATCH] FIX: gui: fix a crash issue after loading 3mf the max color is limited to 16 which is not correct jira: no-jira Change-Id: I3ecb24dd7426646a624d5696006ad2f5138f9421 --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ca730c7b3..591d9d7d4 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4902,7 +4902,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ int size = extruderIds.size() == 0 ? 0 : *(extruderIds.rbegin()); int filament_size = sidebar->combos_filament().size(); - while (filament_size < 16 && filament_size < size) { + while (filament_size < (int)EnforcerBlockerType::ExtruderMax && filament_size < size) { int filament_count = filament_size + 1; wxColour new_col = Plater::get_next_color_for_filament(); std::string new_color = new_col.GetAsString(wxC2S_HTML_SYNTAX).ToStdString();