FEM: utils, do not mix FreeCAD and App on imports

This commit is contained in:
Bernd Hahnebach
2019-03-21 09:23:55 +01:00
committed by wmayer
parent 581a78bbcc
commit 972e29b4af

View File

@@ -29,14 +29,13 @@ __url__ = "http://www.freecadweb.org"
import sys
import FreeCAD
import FreeCAD as App
# analysis and its members
def createObject(doc, name, proxy, viewProxy):
obj = doc.addObject(proxy.BaseType, name)
proxy(obj)
if App.GuiUp:
if FreeCAD.GuiUp:
viewProxy(obj.ViewObject)
return obj