From 745689cf6baea9d1e9d9f952f5c407c211735e47 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Sat, 6 Mar 2021 02:09:06 +0000 Subject: [PATCH] small fix ("return" in wrong function) --- XternalAppsParametricTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XternalAppsParametricTool.py b/XternalAppsParametricTool.py index 47e358e..c81c9a7 100644 --- a/XternalAppsParametricTool.py +++ b/XternalAppsParametricTool.py @@ -11,12 +11,12 @@ def CreateCommand(appName, toolName): FreeCADGui.addModule("XternalAppsParametricTool") FreeCADGui.doCommand("XternalAppsParametricTool.create(%s, %s)"%(repr(appName), repr(toolName))) App.ActiveDocument.commitTransaction() - return obj def create(appName, toolName): name = appName + toolName obj = App.ActiveDocument.addObject("App::DocumentObjectGroupPython", name) XternalAppsParametricTool(obj, appName, toolName) + return obj # TODO: read-only/immutable typeToFreeCADTypeDict = {