Fixed post processors and Command constructor (wasn't dealing with parameters being optional).

This commit is contained in:
ml
2016-10-23 02:43:13 -07:00
committed by wmayer
parent eb9e9096ce
commit 6b69276342
6 changed files with 16 additions and 10 deletions

View File

@@ -27,6 +27,8 @@ import FreeCAD
import Path, PathScripts
from PathScripts import PostUtils
SHOW_EDITOR=True
def fmt(num):
fnum = ""
fnum += '%.3f' % (num)
@@ -98,7 +100,8 @@ def export(obj,filename,argstring):
gfile.close()
else:
FreeCAD.Console.PrintError('Select a path object and try again\n')
if obj[0].Editor:
if SHOW_EDITOR:
FreeCAD.Console.PrintMessage('Editor Activated\n')
dia = PostUtils.GCodeEditorDialog()
dia.editor.setText(gcode)