Another bugfixes of GCode export after refactoring.

This commit is contained in:
bubnikv 2020-01-14 15:12:45 +01:00
parent b54ce0d468
commit ab6a2b71e8
4 changed files with 6 additions and 6 deletions

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)