mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix crash when start_extruder_id is empty (#9584)
Fix crash when `start_extruder_id` is empty (SoftFever/OrcaSlicer#9580)
This commit is contained in:
@@ -38,7 +38,7 @@ static std::vector<unsigned int> solve_extruder_order(const std::vector<std::vec
|
|||||||
std::swap(*all_extruders.begin(), *start_iter);
|
std::swap(*all_extruders.begin(), *start_iter);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
*start_extruder_id = all_extruders.front();
|
start_extruder_id = all_extruders.front();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int iterations = (1 << all_extruders.size());
|
unsigned int iterations = (1 << all_extruders.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user