Fixed Job creation

This commit is contained in:
Markus Lampert
2019-07-02 21:16:38 -07:00
parent d6a20be999
commit 4527f7651b

View File

@@ -95,7 +95,6 @@ def selectionEx():
class ViewProvider:
def __init__(self, vobj):
vobj.Proxy = self
mode = 2
vobj.setEditorMode('BoundingBox', mode)
vobj.setEditorMode('DisplayMode', mode)
@@ -1306,7 +1305,7 @@ def Create(base, template=None):
FreeCAD.ActiveDocument.openTransaction(translate("Path_Job", "Create Job"))
try:
obj = PathJob.Create('Job', base, template)
ViewProvider(obj.ViewObject)
obj.ViewObject.Proxy = ViewProvider(obj.ViewObject)
FreeCAD.ActiveDocument.commitTransaction()
obj.Document.recompute()
obj.ViewObject.Proxy.editObject(obj.Stock)