From f156c459f710b6fe0d676d1a8587ce8e024b4834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hejl?= Date: Fri, 17 Jan 2025 21:59:52 +0100 Subject: [PATCH] SPE-2645: Fix issue with not including the wipe tower into the convex hull of the first layer after adding the extruder change. --- src/libslic3r/PrintApply.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/PrintApply.cpp b/src/libslic3r/PrintApply.cpp index d399e9d53d..da73f2bc68 100644 --- a/src/libslic3r/PrintApply.cpp +++ b/src/libslic3r/PrintApply.cpp @@ -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();