mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 18:40:55 +08: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
@ -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…
x
Reference in New Issue
Block a user