FEM: No need to have ViewObject in _ViewProviderFemAnalysis init
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
f5ad8ca415
commit
a9b28e541b
|
@ -42,7 +42,7 @@ def makeMechanicalAnalysis(name):
|
|||
'''makeFemAnalysis(name): makes a Fem Analysis object'''
|
||||
obj = FreeCAD.ActiveDocument.addObject("Fem::FemAnalysisPython", name)
|
||||
_FemAnalysis(obj)
|
||||
_ViewProviderFemAnalysis(obj.ViewObject)
|
||||
_ViewProviderFemAnalysis()
|
||||
#FreeCAD.ActiveDocument.recompute()
|
||||
return obj
|
||||
|
||||
|
@ -230,9 +230,9 @@ class _FemAnalysis:
|
|||
class _ViewProviderFemAnalysis:
|
||||
"A View Provider for the Material object"
|
||||
|
||||
def __init__(self, vobj):
|
||||
def __init__(self):
|
||||
#vobj.addProperty("App::PropertyLength", "BubbleSize", "Base", str(translate("Fem", "The size of the axis bubbles")))
|
||||
vobj.Proxy = self
|
||||
pass
|
||||
|
||||
def getIcon(self):
|
||||
return ":/icons/Fem_Analysis.svg"
|
||||
|
|
Loading…
Reference in New Issue
Block a user