From 87be8a022d875a7790bcc6d06ef412caa559395f Mon Sep 17 00:00:00 2001 From: sliptonic Date: Fri, 8 Jul 2016 16:00:57 -0500 Subject: [PATCH] bug preventing tool change gcode from being added to postprocess --- src/Mod/Path/PathScripts/PathLoadTool.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathLoadTool.py b/src/Mod/Path/PathScripts/PathLoadTool.py index 3202c8eebd..28829e361a 100644 --- a/src/Mod/Path/PathScripts/PathLoadTool.py +++ b/src/Mod/Path/PathScripts/PathLoadTool.py @@ -59,7 +59,6 @@ class LoadTool(): obj.setEditorMode('Placement', mode) def execute(self, obj): -# if obj.ToolNumber != 0: tool = PathUtils.getTool(obj, obj.ToolNumber) if tool is not None: @@ -67,8 +66,6 @@ class LoadTool(): else: obj.Label = obj.Name + ": UNDEFINED TOOL" - - commands = "" commands += "(" + obj.Label + ")"+'\n' commands += 'M6T'+str(obj.ToolNumber)+'\n' @@ -79,6 +76,7 @@ class LoadTool(): else: commands += 'M4S' + str(obj.SpindleSpeed) + '\n' + obj.Path = Path.Path(commands) def onChanged(self, obj, prop): mode = 2