Skip to content

Commit

Permalink
Fix crash when first layer is empty (#6817)
Browse files Browse the repository at this point in the history
* Fix crash when first layer is empty (#6807)
  • Loading branch information
Noisyfox authored Sep 18, 2024
1 parent 587e839 commit ad6ea3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libslic3r/GCode/ToolOrdering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ad6ea3f

Please sign in to comment.