FIX: config: fix the 3mf export invalid issue when using single filament

JIRA: no-jira
Change-Id: I1faf1fd7ac2b3dfd99594856e3c84da12d805627
This commit is contained in:
lane.wei 2024-09-23 16:35:31 +08:00
parent 2636e44dc0
commit 913bace1eb
1 changed files with 4 additions and 0 deletions

View File

@ -2146,6 +2146,10 @@ DynamicPrintConfig PresetBundle::full_fff_config(bool apply_extruder, std::vecto
}
different_settings.emplace_back(different_filament_settings);
std::vector<int>& filament_self_indice = out.option<ConfigOptionInts>("filament_self_index", true)->values;
int index_size = out.option<ConfigOptionStrings>("filament_extruder_variant")->size();
filament_self_indice.resize(index_size, 1);
} else {
// Retrieve filament presets and build a single config object for them.
// First collect the filament configurations based on the user selection of this->filament_presets.