diff --git a/octoprint_translatemodel/src/translate.cpp b/octoprint_translatemodel/src/translate.cpp index e5c3d51..d04f6ee 100644 --- a/octoprint_translatemodel/src/translate.cpp +++ b/octoprint_translatemodel/src/translate.cpp @@ -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); @@ -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)) { diff --git a/setup.py b/setup.py index 090b1c5..fa92211 100644 --- a/setup.py +++ b/setup.py @@ -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