From 5c61c834b054c5bda9e3381c98c1ffb7015e5546 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 9 Feb 2023 11:17:59 +0800 Subject: [PATCH] FIX: [STUDIO-2207] update_compatible on load user presets Change-Id: Id410c9e0ec68031c0517285daf8a24b998ba2eda --- src/libslic3r/Preset.cpp | 2 +- src/libslic3r/PresetBundle.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 69a20ba8a..0527c6d3b 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -1116,7 +1116,7 @@ void PresetCollection::load_presets( std::sort(m_presets.begin() + m_num_default_presets, m_presets.end()); //BBS: add config related logs BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(": loaded %1% presets from %2%, type %3%")%presets_loaded.size() %dir %Preset::get_type_string(m_type); - this->select_preset(first_visible_idx()); + //this->select_preset(first_visible_idx()); if (! errors_cummulative.empty()) throw Slic3r::RuntimeError(errors_cummulative); } diff --git a/src/libslic3r/PresetBundle.cpp b/src/libslic3r/PresetBundle.cpp index b67af2d0b..3bf75c63f 100644 --- a/src/libslic3r/PresetBundle.cpp +++ b/src/libslic3r/PresetBundle.cpp @@ -537,6 +537,8 @@ PresetsConfigSubstitutions PresetBundle::load_user_presets(std::string user, For errors_cummulative += err.what(); } if (!errors_cummulative.empty()) throw Slic3r::RuntimeError(errors_cummulative); + this->update_multi_material_filament_presets(); + this->update_compatible(PresetSelectCompatibleType::Never); return PresetsConfigSubstitutions(); }