fix: fix no sparse layers during a toolchange (#15441)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-10-29 18:06:26 -03:00
1 parent 2117d28713
commit 29e1899571
4 files changed
+127

No files matched your search

+2
View File
@@ -1734,6 +1734,8 @@ void WipeTower2::toolchange_Change(
// This is where we want to place the custom gcodes. We will use placeholders for this.
// These will be substituted by the actual gcodes when the gcode is generated.
//writer.append("[end_filament_gcode]\n");
// Lift to the layer Z so change_filament_gcode can't hit taller printed parts.
writer.append("[restore_layer_z_before_toolchange]\n");
writer.append("[change_filament_gcode]\n");
if (m_is_mk4mmu3)