mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Fix crash when first layer is empty (#6817)
* Fix crash when first layer is empty (SoftFever/OrcaSlicer#6807)
This commit is contained in:
parent
587e839397
commit
ad6ea3fb06
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ void ToolOrdering::reorder_extruders_for_minimum_flush_volume()
|
|||
return false;
|
||||
};
|
||||
|
||||
std::optional<unsigned int>current_extruder_id(-1);
|
||||
std::optional<unsigned int>current_extruder_id;
|
||||
for (int i = 0; i < m_layer_tools.size(); ++i) {
|
||||
LayerTools& lt = m_layer_tools[i];
|
||||
if (lt.extruders.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue