SPE-2645: Fix issue with not including the wipe tower into the convex hull of the first layer after adding the extruder change.

This commit is contained in:
Lukáš Hejl 2025-01-17 21:59:52 +01:00 committed by Lukas Matena
parent 2f602b3ca8
commit f156c459f7

View File

@ -1163,8 +1163,9 @@ Print::ApplyStatus Print::apply(const Model &model, DynamicPrintConfig new_full_
update_apply_status(
(num_extruders_changed || tool_change_differ || multi_extruder_differ || color_change_differ) ?
// The Tool Ordering and the Wipe Tower are no more valid.
this->invalidate_steps({ psWipeTower, psGCodeExport }) :
// The Tool Ordering and the Wipe Tower are no more valid.
// Because G-code export (PlaceholderParser) accesses the first layer convex hull, we need to also invalidate psSkirtBrim.
this->invalidate_steps({ psWipeTower, psGCodeExport, psSkirtBrim }) :
// There is no change in Tool Changes stored in custom_gcode_per_print_z, therefore there is no need to update Tool Ordering.
this->invalidate_step(psGCodeExport));
m_model.custom_gcode_per_print_z() = model.custom_gcode_per_print_z();