FIX: fix slicing error of more than 1 empty first layers

Jira: STUDIO-656
Change-Id: I582e432ac14b823656780147ec585ae7a7499517
This commit is contained in:
arthur 2022-08-09 21:46:21 +08:00 committed by Lane.Wei
parent 7e01006db7
commit 1e0301dbde
2 changed files with 27 additions and 31 deletions

View file

@ -474,7 +474,8 @@ void ToolOrdering::reorder_extruders(std::vector<unsigned int> tool_order_layer0
if (m_layer_tools.empty())
return;
assert(!tool_order_layer0.empty());
if (tool_order_layer0.empty())
return;
// Reorder the extruders of first layer
{