Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
fix thumbnails regression
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Nov 16, 2023
1 parent bc05653 commit 9505f93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libslic3r/GCode/Thumbnails.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ inline void export_thumbnails_to_file(ThumbnailsGeneratorCallback &thumbnail_cb,
encoded = encoded.substr(max_row_length);
}

// Orca write remaining ecoded data
if (encoded.size() > 0)
output((boost::format("; %s end\n;\n") % compressed->tag()).str().c_str());
output((boost::format("; %s\n") % encoded).str().c_str());

output("; thumbnail end\n");
output((boost::format("; %s end\n") % compressed->tag()).str().c_str());
}
throw_if_canceled();
}
Expand Down

0 comments on commit 9505f93

Please sign in to comment.