mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-17 07:01:54 -06:00
ENH: Optimize the number of function calls during information parsing
During the printer connection cycle, each Filament and slot is only judged once When deleting custom filaments or modifying the temperature of custom filaments, re evaluate Jira: XXXX Change-Id: If495a343efdb1be6f46d11dd20f6ec7934266e87 (cherry picked from commit e5dab1487188d744c732568232b32666e5f2cc5c)
This commit is contained in:
parent
a2eea5fe2b
commit
8f08b587c6
3 changed files with 151 additions and 49 deletions
|
@ -2001,7 +2001,7 @@ std::set<std::string> PresetBundle::get_printer_names_by_printer_type_and_nozzle
|
|||
if (printer_it->name.find(nozzle_diameter_str) != std::string::npos) printer_names.insert(printer_it->name);
|
||||
}
|
||||
|
||||
//assert(printer_names.size() == 1);
|
||||
assert(printer_names.size() == 1);
|
||||
|
||||
for (auto& printer_name : printer_names) {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << " " << __LINE__ << " printer name: " << printer_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue