mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 19:12:00 +08:00
Bugfix: extruder indices mismatch when using specific extruder for the wipe tower (followup of 2d6d37f, which was wrong)
This commit is contained in:
parent
4092da7aef
commit
917ae80cc2
@ -169,6 +169,11 @@ ToolOrdering::ToolOrdering(const Print &print, unsigned int first_extruder, bool
|
|||||||
this->fill_wipe_tower_partitions(print.config(), object_bottom_z, max_layer_height);
|
this->fill_wipe_tower_partitions(print.config(), object_bottom_z, max_layer_height);
|
||||||
|
|
||||||
if (this->insert_wipe_tower_extruder()) {
|
if (this->insert_wipe_tower_extruder()) {
|
||||||
|
// Now convert the 0-based list to 1-based again, because that is what reorder_extruder expects.
|
||||||
|
for (LayerTools& lt : m_layer_tools) {
|
||||||
|
for (auto& extruder : lt.extruders)
|
||||||
|
++extruder;
|
||||||
|
}
|
||||||
this->reorder_extruders(first_extruder);
|
this->reorder_extruders(first_extruder);
|
||||||
this->fill_wipe_tower_partitions(print.config(), object_bottom_z, max_layer_height);
|
this->fill_wipe_tower_partitions(print.config(), object_bottom_z, max_layer_height);
|
||||||
}
|
}
|
||||||
@ -478,12 +483,7 @@ bool ToolOrdering::insert_wipe_tower_extruder()
|
|||||||
sort_remove_duplicates(lt.extruders);
|
sort_remove_duplicates(lt.extruders);
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Now convert the 0-based list to 1-based again.
|
|
||||||
for (LayerTools& lt : m_layer_tools) {
|
|
||||||
for (auto& extruder : lt.extruders)
|
|
||||||
++extruder;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return changed;
|
return changed;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user