mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 09:59:48 -07:00
Fix crash when switching to profile that has filament count less than used by current project
This commit is contained in:
parent
6b4975da72
commit
fa238016ce
1 changed files with 1 additions and 0 deletions
|
|
@ -1838,6 +1838,7 @@ bool PartPlate::check_mixture_filament_compatible(const DynamicPrintConfig &conf
|
|||
auto filament_type_opt = config.option<ConfigOptionStrings>("filament_type");
|
||||
for (auto filament : used_filaments) {
|
||||
int filament_idx = filament - 1;
|
||||
if (filament_idx >= filament_type_opt->values.size()) filament_idx = 0;
|
||||
filament_types.push_back(filament_type_opt->values[filament_idx]);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue