From 4427d5bccf119463ba5c217f3e1c68f6ffe41f31 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Thu, 18 Sep 2025 11:23:14 +0800 Subject: [PATCH] Add missing VT --- src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 79fd7615ff..9534b968d0 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2666,6 +2666,8 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato //BBS: gcode writer doesn't know where the real position of extruder is after inserting custom gcode m_writer.set_current_position_clear(false); m_start_gcode_filament = GCodeProcessor::get_gcode_last_filament(machine_start_gcode); + // mark the first filament used in print + file.write_format(";VT%d\n",initial_extruder_id); //flush FanMover buffer to avoid modifying the start gcode if it's manual. if (!machine_start_gcode.empty() && this->m_fan_mover.get() != nullptr)