FEM: constraint self weight view provider, delete display modes

- the new constraint python includes the display modes already
- constraint self weight is retrieved from this new constraint python
- thus the display modes can be removed from the view provider
This commit is contained in:
Bernd Hahnebach
2017-08-04 07:06:36 +02:00
parent c623fc9a4b
commit 9ea5d9aef4

View File

@@ -27,8 +27,6 @@ __url__ = "http://www.freecadweb.org"
## @package ViewProviderFemConstraintSelfWeight
# \ingroup FEM
from pivy import coin
class _ViewProviderFemConstraintSelfWeight:
"A View Provider for the FemConstraintSelfWeight object"
@@ -41,14 +39,6 @@ class _ViewProviderFemConstraintSelfWeight:
def attach(self, vobj):
self.ViewObject = vobj
self.Object = vobj.Object
self.standard = coin.SoGroup()
vobj.addDisplayMode(self.standard, "Standard")
def getDisplayModes(self, obj):
return ["Standard"]
def getDefaultDisplayMode(self):
return "Standard"
def updateData(self, obj, prop):
return