bug preventing tool change gcode
from being added to postprocess
This commit is contained in:
parent
f6654c8a6d
commit
4880e633b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user