diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 7e7c5d7527..052bfbb21a 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -1355,19 +1355,6 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato { file.write_format("; hack-fix: write fake slicer info here so that Moonraker will extract thumbs.\n"); file.write_format("; %s\n\n",std::string(std::string("generated by SuperSlicer " SLIC3R_VERSION " on " ) + Slic3r::Utils::utc_timestamp()).c_str()); - file.write("; CONFIG_BLOCK_START\n"); - std::string full_config; - append_full_config(print, full_config); - if (!full_config.empty()) - file.write(full_config); - - // SoftFever: write compatiple image - std::vector temps_per_bed; - int first_layer_bed_temperature = 0; - get_bed_temperature(0, true, temps_per_bed, first_layer_bed_temperature); - file.write_format("; first_layer_bed_temperature = %d\n", first_layer_bed_temperature); - file.write_format("; first_layer_temperature = %d\n", print.config().nozzle_temperature_initial_layer.get_at(0)); - file.write("; CONFIG_BLOCK_END\n\n"); } //BBS: add plate id into thumbnail render logic @@ -1804,6 +1791,19 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato // Modifies print.m_print_statistics)); file.write("\n"); + file.write("; CONFIG_BLOCK_START\n"); + std::string full_config; + append_full_config(print, full_config); + if (!full_config.empty()) + file.write(full_config); + + // SoftFever: write compatiple image + std::vector temps_per_bed; + int first_layer_bed_temperature = 0; + get_bed_temperature(0, true, temps_per_bed, first_layer_bed_temperature); + file.write_format("; first_layer_bed_temperature = %d\n", first_layer_bed_temperature); + file.write_format("; first_layer_temperature = %d\n", print.config().nozzle_temperature_initial_layer.get_at(0)); + file.write("; CONFIG_BLOCK_END\n\n"); file.write_format("; total filament used [g] = %.2lf\n", print.m_print_statistics.total_weight); file.write_format("; total filament cost = %.2lf\n", print.m_print_statistics.total_cost); if (print.m_print_statistics.total_toolchanges > 0)