mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: add timelapse gcode for multi_extruder
and add most used_extruder for print by object jira:none Change-Id: I021069e865992828b098d73c0d704ba7edbd55d8 (cherry picked from commit ae62f7b8e4b4258318c0d941963eddfb70e86c15)
This commit is contained in:
@@ -823,7 +823,7 @@ void ToolOrdering::collect_extruder_statistics(bool prime_multi_material)
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<int> ToolOrdering::cal_most_used_extruder(const PrintConfig &config)
|
||||
void ToolOrdering::cal_most_used_extruder(const PrintConfig &config)
|
||||
{
|
||||
// record
|
||||
std::vector<int> extruder_count;
|
||||
@@ -841,7 +841,14 @@ std::vector<int> ToolOrdering::cal_most_used_extruder(const PrintConfig &config)
|
||||
extruder_count[extruder_id]++;
|
||||
}
|
||||
}
|
||||
return extruder_count;
|
||||
|
||||
// set key for most used extruder
|
||||
// count most used extruder
|
||||
most_used_extruder = 0;
|
||||
for (int extruder_id = 1; extruder_id < extruder_count.size(); extruder_id++) {
|
||||
if (extruder_count[extruder_id] >= extruder_count[most_used_extruder])
|
||||
most_used_extruder = extruder_id;
|
||||
}
|
||||
}
|
||||
|
||||
//BBS: find first non support filament
|
||||
|
||||
Reference in New Issue
Block a user