mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 13:39:00 +08:00
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:
parent
147121ca6a
commit
eb31b815b1
@ -421,9 +421,7 @@ 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)});
|
||||
}
|
||||
result.push_back({offset, std::move(slices_extrusions)});
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user