FIX: wipe tower is not generated with different filament layer range
Change-Id: Ica876c3a94a3edb23eb723a1f3c37e2d10549af9
This commit is contained in:
parent
f9f937b769
commit
b5878b1838
2 changed files with 13 additions and 0 deletions
|
@ -295,6 +295,12 @@ std::vector<unsigned int> Print::object_extruders() const
|
|||
extruders.push_back(extruder - 1);
|
||||
}
|
||||
}
|
||||
|
||||
// layer range
|
||||
for (auto layer_range : mo->layer_config_ranges) {
|
||||
if (layer_range.second.has("extruder"))
|
||||
extruders.push_back(layer_range.second.option("extruder")->getInt() - 1);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
sort_remove_duplicates(extruders);
|
||||
|
|
|
@ -1282,6 +1282,13 @@ std::vector<int> PartPlate::get_extruders(bool conside_custom_gcode) const
|
|||
plate_extruders.insert(plate_extruders.end(), volume_extruders.begin(), volume_extruders.end());
|
||||
}
|
||||
|
||||
// layer range
|
||||
for (auto layer_range : mo->layer_config_ranges) {
|
||||
if (layer_range.second.has("extruder")) {
|
||||
plate_extruders.push_back(layer_range.second.option("extruder")->getInt());
|
||||
}
|
||||
}
|
||||
|
||||
bool obj_support = false;
|
||||
const ConfigOption* obj_support_opt = mo->config.option("enable_support");
|
||||
const ConfigOption *obj_raft_opt = mo->config.option("raft_layers");
|
||||
|
|
Loading…
Reference in a new issue