Basic G-Code Thumbnail Generation Support

This commit is contained in:
Dark98
2026-01-22 01:40:36 +00:00
parent 6dbb3a8f1d
commit 261ba81e06
8 changed files with 627 additions and 13 deletions
+4 -2
View File
@@ -1021,7 +1021,9 @@ void GCodeGenerator::_do_export(Print& print, GCodeOutputStream &file, Thumbnail
if (!export_to_binary_gcode)
// Write information on the generator.
file.write_format("; %s\n\n", Slic3r::header_slic3r_generated().c_str());
file.write("; HEADER_BLOCK_START\n");
file.write_format("; %s\n", Slic3r::header_slic3r_generated().c_str());
file.write("; HEADER_BLOCK_END\n\n");
if (! export_to_binary_gcode) {
// if exporting gcode in ascii format, generate the thumbnails here
@@ -3889,4 +3891,4 @@ Point GCodeGenerator::gcode_to_point(const Vec2d &point) const
return scaled<coord_t>(pt);
}
} // namespace Slic3r
} // namespace Slic3r