From 68945e07e822d9edfeba76c599954dc2bd65230e Mon Sep 17 00:00:00 2001 From: SoftFever Date: Fri, 2 Aug 2024 21:40:03 +0800 Subject: [PATCH] write correct extruder_colour to gcode fixes #6288 --- src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 89357db28f..fc29347f9a 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -4365,6 +4365,8 @@ void GCode::append_full_config(const Print &print, std::string &str) if (key == "wipe_tower_x" || key == "wipe_tower_y") { ss << std::fixed << std::setprecision(3) << "; " << key << " = " << dynamic_cast(cfg.option(key))->get_at(print.get_plate_index()) << "\n"; } + if(key == "extruder_colour") + ss << "; " << key << " = " << cfg.opt_serialize("filament_colour") << "\n"; else ss << "; " << key << " = " << cfg.opt_serialize(key) << "\n"; }