mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-24 05:43:15 +08:00
FIX: Unnecessary prime tower error prompts
Custom gcode on other plate causes unnecessary prime tower error prompts Jira: 6305 Change-Id: If499659b364a6b6898db1587b7b2aeed03758667
This commit is contained in:
parent
6036c0fc0a
commit
698e1ae63c
@ -400,8 +400,8 @@ std::vector<unsigned int> Print::extruders(bool conside_custom_gcode) const
|
|||||||
if (conside_custom_gcode) {
|
if (conside_custom_gcode) {
|
||||||
//BBS
|
//BBS
|
||||||
int num_extruders = m_config.filament_colour.size();
|
int num_extruders = m_config.filament_colour.size();
|
||||||
for (auto plate_data : m_model.plates_custom_gcodes) {
|
if (m_model.plates_custom_gcodes.find(m_model.curr_plate_index) != m_model.plates_custom_gcodes.end()) {
|
||||||
for (auto item : plate_data.second.gcodes) {
|
for (auto item : m_model.plates_custom_gcodes.at(m_model.curr_plate_index).gcodes) {
|
||||||
if (item.type == CustomGCode::Type::ToolChange && item.extruder <= num_extruders)
|
if (item.type == CustomGCode::Type::ToolChange && item.extruder <= num_extruders)
|
||||||
extruders.push_back((unsigned int)(item.extruder - 1));
|
extruders.push_back((unsigned int)(item.extruder - 1));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user