mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: get_similar_printer_preset only visit system preset
Change-Id: Ib219e76cba37ace7b81f69e63f4edd1edb25ddc4 Jira: STUDIO-10338 (cherry picked from commit 0b4795fd10a9d8fd4fd2fe32d03cd7efec9236e9)
This commit is contained in:
@@ -2541,7 +2541,10 @@ Preset *PresetBundle::get_similar_printer_preset(std::string printer_model, std:
|
|||||||
auto printer_variant_old = printers.get_selected_preset().config.opt_string("printer_variant");
|
auto printer_variant_old = printers.get_selected_preset().config.opt_string("printer_variant");
|
||||||
std::set<std::string> printer_names;
|
std::set<std::string> printer_names;
|
||||||
for (auto &preset : printers.m_presets) {
|
for (auto &preset : printers.m_presets) {
|
||||||
if (preset.config.opt_string("printer_model") == printer_model) printer_names.insert(preset.name);
|
if (printer_variant.empty() && !preset.is_system)
|
||||||
|
continue;
|
||||||
|
if (preset.config.opt_string("printer_model") == printer_model)
|
||||||
|
printer_names.insert(preset.name);
|
||||||
}
|
}
|
||||||
if (printer_names.empty())
|
if (printer_names.empty())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user