Another bugfixes of GCode export after refactoring.

This commit is contained in:
bubnikv committed 2020-01-14 15:12:45 +01:00
1 parent b54ce0d468
commit ab6a2b71e8
4 files changed
+6 -6

No files matched your search

+2 -1
View File
@@ -23,8 +23,9 @@ void GCodeWriter::apply_print_config(const PrintConfig &print_config)
print_config.machine_max_acceleration_extruding.values.front() : 0);
}
void GCodeWriter::set_extruders(const std::vector<unsigned int> &extruder_ids)
void GCodeWriter::set_extruders(std::vector<unsigned int> extruder_ids)
{
std::sort(extruder_ids.begin(), extruder_ids.end());
m_extruders.clear();
m_extruders.reserve(extruder_ids.size());
for (unsigned int extruder_id : extruder_ids)