FIX: missing filament start gcode with 1 color

1. Caused by setting the current filament to filaments used
in machine start gcode

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: If6789b1e02aadc6d03610b7b7cc4c829ae767a7d
(cherry picked from commit 8c88fabe8f0476280ff18bafc320a1d1e4a01a99)
This commit is contained in:
xun.zhang 2024-09-25 16:31:50 +08:00 committed by Noisyfox
parent 7c6edc004f
commit be6095b4a7

View file

@ -2472,9 +2472,6 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
if (!machine_start_gcode.empty() && this->m_fan_mover.get() != nullptr)
file.write(this->m_fan_mover.get()->process_gcode("", true));
// init extrude
m_writer.init_extruder(initial_non_support_extruder_id);
// Process filament-specific gcode.
/* if (has_wipe_tower) {
// Wipe tower will control the extruder switching, it will call the filament_start_gcode.