small fix ("return" in wrong function)

This commit is contained in:
Suzanne Soy 2021-03-06 02:09:06 +00:00
parent 963e98e9ed
commit 745689cf6b

View File

@ -11,12 +11,12 @@ def CreateCommand(appName, toolName):
FreeCADGui.addModule("XternalAppsParametricTool") FreeCADGui.addModule("XternalAppsParametricTool")
FreeCADGui.doCommand("XternalAppsParametricTool.create(%s, %s)"%(repr(appName), repr(toolName))) FreeCADGui.doCommand("XternalAppsParametricTool.create(%s, %s)"%(repr(appName), repr(toolName)))
App.ActiveDocument.commitTransaction() App.ActiveDocument.commitTransaction()
return obj
def create(appName, toolName): def create(appName, toolName):
name = appName + toolName name = appName + toolName
obj = App.ActiveDocument.addObject("App::DocumentObjectGroupPython", name) obj = App.ActiveDocument.addObject("App::DocumentObjectGroupPython", name)
XternalAppsParametricTool(obj, appName, toolName) XternalAppsParametricTool(obj, appName, toolName)
return obj
# TODO: read-only/immutable # TODO: read-only/immutable
typeToFreeCADTypeDict = { typeToFreeCADTypeDict = {