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'''
|
'''makeFemAnalysis(name): makes a Fem Analysis object'''
|
||||||
obj = FreeCAD.ActiveDocument.addObject("Fem::FemAnalysisPython", name)
|
obj = FreeCAD.ActiveDocument.addObject("Fem::FemAnalysisPython", name)
|
||||||
_FemAnalysis(obj)
|
_FemAnalysis(obj)
|
||||||
_ViewProviderFemAnalysis(obj.ViewObject)
|
_ViewProviderFemAnalysis()
|
||||||
#FreeCAD.ActiveDocument.recompute()
|
#FreeCAD.ActiveDocument.recompute()
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
|
@ -230,9 +230,9 @@ class _FemAnalysis:
|
||||||
class _ViewProviderFemAnalysis:
|
class _ViewProviderFemAnalysis:
|
||||||
"A View Provider for the Material object"
|
"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.addProperty("App::PropertyLength", "BubbleSize", "Base", str(translate("Fem", "The size of the axis bubbles")))
|
||||||
vobj.Proxy = self
|
pass
|
||||||
|
|
||||||
def getIcon(self):
|
def getIcon(self):
|
||||||
return ":/icons/Fem_Analysis.svg"
|
return ":/icons/Fem_Analysis.svg"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user