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
This commit is contained in:
parent
081df8f580
commit
dac00582ae
|
@ -4902,7 +4902,7 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& 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();
|
||||
|
|
Loading…
Reference in New Issue