Fix SPE-2640: Fix overriden extrusions crash

Overriden extrusions must be inserted even if they are empty
because the resulting vector must be the same length as
instances_to_print
This commit is contained in:
Martin Šach 2025-01-23 12:03:10 +01:00 committed by Lukas Matena
parent 147121ca6a
commit eb31b815b1

View File

@ -421,11 +421,9 @@ std::vector<OverridenExtrusions> get_overriden_extrusions(
std::vector<SliceExtrusions> slices_extrusions{get_slices_extrusions(
print, *layer, should_pick_extrusion, smooth_path, offset, extruder_id, previous_position
)};
if (!slices_extrusions.empty()) {
result.push_back({offset, std::move(slices_extrusions)});
}
}
}
return result;
}