From 103d778e6315efbbddedb872066d3d22f54e66d4 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Tue, 12 Dec 2023 19:24:31 +0800 Subject: [PATCH] Fix false "The 3mf has following modified G-codes in filament or printer presets" warning when loading a project --- src/libslic3r/PresetBundle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index c5d1973c2b..a8d7d3d7f6 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -1011,7 +1011,7 @@ int PresetBundle::validate_presets(const std::string &file_name, DynamicPrintCon return ret; } - for(unsigned int index = 1; index < filament_count+2; index ++) + for(unsigned int index = 1; index < filament_count; index ++) { std::string different_settingss = different_values[index];