From 698fe21c0f34bcf6406a8bd14434c531e52b7bf2 Mon Sep 17 00:00:00 2001 From: P-C-R <47773180+P-C-R@users.noreply.github.com> Date: Mon, 15 Nov 2021 08:20:06 +0100 Subject: [PATCH] Update rrf_post.py --- src/Mod/Path/PathScripts/post/rrf_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/rrf_post.py b/src/Mod/Path/PathScripts/post/rrf_post.py index 570d802a40..9bd976018c 100644 --- a/src/Mod/Path/PathScripts/post/rrf_post.py +++ b/src/Mod/Path/PathScripts/post/rrf_post.py @@ -595,12 +595,12 @@ def parse(pathobj): out += linenumber() + '(Begin toolchange)\n' if OUTPUT_TOOL_CHANGE: + for line in TOOL_CHANGE.splitlines(True): + out += linenumber() + line + '\n' outlist[0] = ' ' outlist[-1] =('T' + str(int(c.Parameters['T']))) if not OUTPUT_TOOL_CHANGE and OUTPUT_COMMENTS: - for line in TOOL_CHANGE.splitlines(True): - out += linenumber() + line + '\n' # next 2 lines could also be replaced by a single line as "outlist = []" outlist[0] = ' ' outlist[-1] = ' '