mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python
do not call mesh.Register() as this prevents mesh servant deletion at closing study
This commit is contained in:
parent
7384d881f7
commit
fab1d896c8
@ -1206,7 +1206,7 @@ class Mesh:
|
||||
## Destructor. Clean-up resources
|
||||
def __del__(self):
|
||||
if self.mesh:
|
||||
self.mesh.UnRegister()
|
||||
#self.mesh.UnRegister()
|
||||
pass
|
||||
pass
|
||||
|
||||
@ -1214,10 +1214,11 @@ class Mesh:
|
||||
# @param theMesh a SMESH_Mesh object
|
||||
# @ingroup l2_construct
|
||||
def SetMesh(self, theMesh):
|
||||
if self.mesh: self.mesh.UnRegister()
|
||||
# do not call Register() as this prevents mesh servant deletion at closing study
|
||||
#if self.mesh: self.mesh.UnRegister()
|
||||
self.mesh = theMesh
|
||||
if self.mesh:
|
||||
self.mesh.Register()
|
||||
#self.mesh.Register()
|
||||
self.geom = self.mesh.GetShapeToMesh()
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user