mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 07:01:29 +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;
|
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) {
|
for (int i = 0; i < m_layer_tools.size(); ++i) {
|
||||||
LayerTools& lt = m_layer_tools[i];
|
LayerTools& lt = m_layer_tools[i];
|
||||||
if (lt.extruders.empty())
|
if (lt.extruders.empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user