From 913bace1eb13f74eaea100897efeccd30a9253ed Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Mon, 23 Sep 2024 16:35:31 +0800 Subject: [PATCH] FIX: config: fix the 3mf export invalid issue when using single filament JIRA: no-jira Change-Id: I1faf1fd7ac2b3dfd99594856e3c84da12d805627 --- src/libslic3r/PresetBundle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index 76cd9b120..7c0f25f8a 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -2146,6 +2146,10 @@ DynamicPrintConfig PresetBundle::full_fff_config(bool apply_extruder, std::vecto } different_settings.emplace_back(different_filament_settings); + + std::vector& filament_self_indice = out.option("filament_self_index", true)->values; + int index_size = out.option("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.