From 8ba9630e5370bf363169c92f738b7df4d2f3eede Mon Sep 17 00:00:00 2001 From: Ian Chua Date: Wed, 1 Jul 2026 13:00:18 +0800 Subject: [PATCH] fix --- src/libslic3r/Preset.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 5c4a430111..0f014fe4c4 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -800,6 +800,10 @@ bool is_compatible_with_parent_printer(const PresetWithVendorProfile& preset, co { auto *compatible_printers = dynamic_cast(preset.preset.config.option("compatible_printers")); bool has_compatible_printers = compatible_printers != nullptr && ! compatible_printers->values.empty(); + auto contains_printer_name = [compatible_printers](const std::string &printer_name) { + return std::find(compatible_printers->values.begin(), compatible_printers->values.end(), printer_name) != + compatible_printers->values.end(); + }; //BBS: FIXME only check the parent now, but should check grand-parent as well. return has_compatible_printers && (contains_printer_name(active_printer.preset.inherits()) ||