mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-04 00:38:41 +00:00
Basic G-Code Thumbnail Generation Support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user