Toolchange output fixed

This commit is contained in:
sliptonic 2016-11-05 19:24:56 -05:00
parent 50bfaffcd1
commit fe11942afb

View File

@ -26,6 +26,7 @@
import FreeCAD
import FreeCADGui
import PathUtils
import Path
import Part
import PathScripts
from PySide import QtCore, QtGui
@ -74,6 +75,15 @@ class LoadTool():
else:
commands += 'M4S' + str(obj.SpindleSpeed) + '\n'
# print output
if commands == "":
commands += "(No commands processed)"
path = Path.Path(commands)
obj.Path = path
obj.ViewObject.Visibility = True
def onChanged(self, obj, prop):
mode = 2
obj.setEditorMode('Placement', mode)