Fixes #4555
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -127,6 +125,7 @@ def insert(filename, docname):
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
|
||||
|
||||
|
||||
def parse(inputstring):
|
||||
"parse(inputstring): returns a parsed output string"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user