From 6c901801aaeb7b7ad3bbc809c926ad6a6e04e275 Mon Sep 17 00:00:00 2001 From: Will MacCormack Date: Thu, 22 Apr 2021 14:39:30 -0700 Subject: [PATCH] v0.2.0 --- octoprint_translatemodel/src/translate.cpp | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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