Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail Formats Option Ported from PrusaSlicer and add BIQU/BTT format #2405

Merged
merged 7 commits into from
Oct 17, 2023
Prev Previous commit
Next Next commit
have GCodeProcessor.post_process pass through original line end chara…
…cters
  • Loading branch information
Ocraftyone committed Oct 16, 2023
commit 4f2600b4aacdc5b75596b3477dc0e3d08b3dcef9
5 changes: 4 additions & 1 deletion src/libslic3r/GCode/GCodeProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,10 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename, st
if (eol) {
++line_id;

gcode_line += "\n";
// determine the end of line character and pass to output
Ocraftyone marked this conversation as resolved.
Show resolved Hide resolved
gcode_line += *it_end;
if(*it_end == '\r' && *(++ it_end) == '\n')
gcode_line += '\n';
// replace placeholder lines
auto [processed, lines_added_count] = process_placeholders(gcode_line);
if (processed && lines_added_count > 0)
Expand Down