FIX: fix crash of slice

jira: none
Change-Id: I68b1557d5a361d175abdff99a0542ca105b76f7f
This commit is contained in:
zhimin.zeng 2024-11-16 20:20:46 +08:00 committed by lane.wei
parent 4fe716a9c9
commit 02c2fb6f6c
1 changed files with 1 additions and 0 deletions

View File

@ -1132,6 +1132,7 @@ void ToolOrdering::reorder_extruders_for_minimum_flush_volume(bool reorder_first
}
else if (nozzle_nums == 1) {
filament_maps = m_print->get_filament_maps();
filament_maps.resize(number_of_extruders, 1);
bool invalid = std::any_of(filament_maps.begin(), filament_maps.end(), [](int value) { return value != 1; });
if (invalid) {
assert(false);