diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 5b62cdaa2a3..49e29fc30f8 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2554,7 +2554,13 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato if(!has_BTT_thumbnail){ file.write_format("; HEADER_BLOCK_START\n"); // Write information on the generator. - file.write_format("; generated by %s on %s\n", Slic3r::header_slic3r_generated().c_str(), Slic3r::Utils::local_timestamp().c_str()); + std::string generator = Slic3r::header_slic3r_generated(); + const ConfigOptionString *printer_agent = print.config().option("printer_agent"); + const ConfigOptionString *printer_model = print.config().option("printer_model"); + if ((printer_agent != nullptr && printer_agent->value == "snapmaker") || + (printer_model != nullptr && printer_model->value.rfind("Snapmaker ", 0) == 0)) + generator = std::string("Snapmaker OrcaSlicer ImageMap exporter ") + SoftFever_VERSION; + file.write_format("; generated by %s on %s\n", generator.c_str(), Slic3r::Utils::local_timestamp().c_str()); if (is_bbl_printers) file.write_format(";%s\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Estimated_Printing_Time_Placeholder).c_str()); //BBS: total layer number