mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-06 23:07:42 -07:00
FIX: useless change of extruder
jira: none Change-Id: I4331e129d5a1ed79b539946d84ccd3113df93ef0 (cherry picked from commit fe20ab11b970a066fdeb42486c4bb53a8a5172ba)
This commit is contained in:
parent
94b44a0391
commit
0d62d88387
1 changed files with 9 additions and 3 deletions
|
|
@ -589,9 +589,15 @@ void ToolOrdering::collect_extruders(const PrintObject &object, const std::vecto
|
|||
// Collect the support extruders.
|
||||
for (auto support_layer : object.support_layers()) {
|
||||
LayerTools &layer_tools = this->tools_for_layer(support_layer->print_z);
|
||||
ExtrusionRole role = support_layer->support_fills.role();
|
||||
bool has_support = role == erMixed || role == erSupportMaterial || role == erSupportTransition;
|
||||
bool has_interface = role == erMixed || role == erSupportMaterialInterface;
|
||||
ExtrusionRole role = support_layer->support_fills.role();
|
||||
bool has_support = false;
|
||||
bool has_interface = false;
|
||||
for (const ExtrusionEntity *ee : support_layer->support_fills.entities) {
|
||||
ExtrusionRole er = ee->role();
|
||||
if (er == erSupportMaterial || er == erSupportTransition) has_support = true;
|
||||
if (er == erSupportMaterialInterface) has_interface = true;
|
||||
if (has_support && has_interface) break;
|
||||
}
|
||||
unsigned int extruder_support = object.config().support_filament.value;
|
||||
unsigned int extruder_interface = object.config().support_interface_filament.value;
|
||||
if (has_support)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue