Skip to content

Commit

Permalink
Fixes FreeCAD#4555
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptonic committed Feb 17, 2021
1 parent f369260 commit 097b2c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Mod/Path/PathScripts/post/gcode_pre.py
Expand Up @@ -112,11 +112,9 @@ def insert(filename, docname):

# Create a custom and viewobject
obj = PathCustom.Create("Custom")
res = PathOpGui.CommandResources('Custom',
PathCustom.Create, PathCustomGui.TaskPanelOpPage,
'Path_Custom',
QtCore.QT_TRANSLATE_NOOP('Path_Custom', 'Custom'), '', ''
)
res = PathOpGui.CommandResources('Custom', PathCustom.Create,
PathCustomGui.TaskPanelOpPage,
'Path_Custom', 'Custom', '', '')
obj.ViewObject.Proxy = PathOpGui.ViewProvider(obj.ViewObject, res)
obj.ViewObject.Proxy.setDeleteObjectsOnReject(False)

Expand All @@ -127,6 +125,7 @@ def insert(filename, docname):
FreeCAD.ActiveDocument.recompute()



def parse(inputstring):
"parse(inputstring): returns a parsed output string"

Expand Down

0 comments on commit 097b2c9

Please sign in to comment.