From 41b7a4c295649762d341b1845130f38f5781be35 Mon Sep 17 00:00:00 2001 From: Mykola Nahirnyi Date: Fri, 19 Jun 2026 09:50:06 +0300 Subject: [PATCH] Allow presets without parent --- src/slic3r/GUI/GUI_App.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index f3045d3f1a..093881b021 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -6241,8 +6241,11 @@ bool GUI_App::maybe_migrate_user_presets_on_login() bool GUI_App::check_preset_parent_available(const std::pair>& preset_data) { - std::string inherits_name = preset_data.second.at(BBL_JSON_KEY_INHERITS); - // // If contains "fdm_", "@System", and "@base", is a common base template that doesn't need to be installed + auto it = preset_data.second.find(BBL_JSON_KEY_INHERITS); + if (it == preset_data.second.end() || it->second.empty()) + return true; + const std::string& inherits_name = it->second; + // If contains "fdm_", "@System", and "@base", is a common base template that doesn't need to be installed if (inherits_name.find("fdm_") != std::string::npos || inherits_name.find("@System") != std::string::npos || inherits_name.find("@base") != std::string::npos) return true;