Skip to content

Commit

Permalink
v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Willmac16 committed Apr 22, 2021
1 parent 33368e6 commit 6c90180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions octoprint_translatemodel/src/translate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ std::string translate(double shifts[][2], int numShifts, std::string inPath,
opath = outPath.str();
info("Working on file " + opath);

std::ofstream outfile(opath);

fileBuffer.open(opath.c_str(), std::ios_base::out);

out.rdbuf(&fileBuffer);
Expand Down Expand Up @@ -305,6 +303,7 @@ std::string translate(double shifts[][2], int numShifts, std::string inPath,

afterStart = false;
out << line << lineEnd << ";TRANSLATE-MODEL_STOP" << lineEnd;
layerStream = std::ostringstream();
}
else if (std::regex_match(line, start))
{
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
plugin_name = "OctoPrint-TranslateModel"

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.2.0a0"
plugin_version = "0.2.0"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 6c90180

Please sign in to comment.