mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-20 19:42:21 -07: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:
parent
e05d81c797
commit
e56774ad71
1 changed files with 4 additions and 1 deletions
|
|
@ -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");
|
||||
std::set<std::string> printer_names;
|
||||
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())
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue