mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00: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:
@@ -219,10 +219,14 @@ ToolOrdering::ToolOrdering(const PrintObject &object, unsigned int first_extrude
|
||||
|
||||
// BBS
|
||||
// Reorder the extruders to minimize tool switches.
|
||||
if (first_extruder == (unsigned int)-1) {
|
||||
this->reorder_extruders(generate_first_layer_tool_order(object));
|
||||
std::vector<unsigned int> first_layer_tool_order;
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user