Bugfix for "Before Tool Change" Commands

This commit is contained in:
P-C-R
2021-11-15 08:15:07 +01:00
committed by GitHub
parent 2e84b27a28
commit bc3e8fbbc7

View File

@@ -599,6 +599,8 @@ def parse(pathobj):
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] = ' '