mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix access violation when slicing project with print-by-object mode (#5984)
Fix issue that models with only one color become multicolor after slicing when print-by-object mode is used.
This applys the same fix as 612204b443
This commit is contained in:
parent
b5bf6aed6f
commit
783570ebf6
1 changed files with 7 additions and 3 deletions
|
@ -219,10 +219,14 @@ ToolOrdering::ToolOrdering(const PrintObject &object, unsigned int first_extrude
|
||||||
|
|
||||||
// BBS
|
// BBS
|
||||||
// Reorder the extruders to minimize tool switches.
|
// Reorder the extruders to minimize tool switches.
|
||||||
if (first_extruder == (unsigned int)-1) {
|
std::vector<unsigned int> first_layer_tool_order;
|
||||||
this->reorder_extruders(generate_first_layer_tool_order(object));
|
if (first_extruder == (unsigned int) -1) {
|
||||||
|
first_layer_tool_order = generate_first_layer_tool_order(object);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
|
if (!first_layer_tool_order.empty()) {
|
||||||
|
this->reorder_extruders(first_layer_tool_order);
|
||||||
|
} else {
|
||||||
this->reorder_extruders(first_extruder);
|
this->reorder_extruders(first_extruder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue