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