FEM: do not use base vp for result mesh object, fixes some problems
This commit is contained in:
@@ -29,12 +29,22 @@ __url__ = "http://www.freecadweb.org"
|
||||
# \ingroup FEM
|
||||
# \brief FreeCAD FEM _ViewProviderFemMeshResult
|
||||
|
||||
from . import ViewProviderFemConstraint
|
||||
# from . import ViewProviderFemConstraint
|
||||
|
||||
|
||||
class _ViewProviderFemMeshResult(ViewProviderFemConstraint.ViewProxy):
|
||||
# class _ViewProviderFemMeshResult(ViewProviderFemConstraint.ViewProxy):
|
||||
class _ViewProviderFemMeshResult:
|
||||
"""
|
||||
A View Provider for the FemMeshResult object
|
||||
"""
|
||||
def __init__(self, vobj):
|
||||
vobj.Proxy = self
|
||||
|
||||
pass
|
||||
def getIcon(self):
|
||||
return ":/icons/FEM_MeshResult.svg"
|
||||
|
||||
def __getstate__(self):
|
||||
return None
|
||||
|
||||
def __setstate__(self, state):
|
||||
return None
|
||||
|
||||
@@ -90,6 +90,8 @@ class _TaskPanel:
|
||||
# task panel should be started by use of setEdit of view provider
|
||||
# in view provider checks: Mesh, active analysis and
|
||||
# if Mesh and result are in active analysis
|
||||
# activate the result mesh object
|
||||
self.mesh_obj.ViewObject.show()
|
||||
|
||||
ui_path = FreeCAD.getHomePath() + "Mod/Fem/Resources/ui/"
|
||||
self.result_widget = FreeCADGui.PySideUic.loadUi(ui_path + "ResultShow.ui")
|
||||
|
||||
Reference in New Issue
Block a user