FIX: wipe tower is not generate when insert custom gcode

Change-Id: I2e21955e4a29b0ee1aa3150f26ccef4db5850413
(cherry picked from commit 677151a26c9724993bad6d802015e76a700555f4)
This commit is contained in:
zhimin.zeng 2023-03-15 22:35:50 +08:00 committed by Lane.Wei
parent 34f52b213c
commit 96d2882b8d
2 changed files with 3 additions and 14 deletions

View file

@ -341,7 +341,7 @@ std::vector<unsigned int> Print::extruders(bool conside_custom_gcode) const
for (auto plate_data : m_model.plates_custom_gcodes) {
for (auto item : plate_data.second.gcodes) {
if (item.type == CustomGCode::Type::ToolChange)
extruders.push_back((unsigned int)item.extruder);
extruders.push_back((unsigned int)(item.extruder - 1));
}
}
}