From: vsr Date: Wed, 21 Oct 2009 10:25:24 +0000 (+0000) Subject: Issue 0020544: EDF 1140 SMESH: Dumpstudy with FindEqualElments function not loadable X-Git-Tag: V4_1_0_maintainance_FINAL~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9514db2e765b3c415e2e0f255f9b7beeeda6020;p=modules%2Fsmesh.git Issue 0020544: EDF 1140 SMESH: Dumpstudy with FindEqualElments function not loadable --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index edc7ca5e5..05864fcc1 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -2653,6 +2653,8 @@ class Mesh: # @return a list of groups of equal elements # @ingroup l2_modif_trsf def FindEqualElements (self, MeshOrSubMeshOrGroup): + if ( isinstance( MeshOrSubMeshOrGroup, Mesh )): + MeshOrSubMeshOrGroup = MeshOrSubMeshOrGroup.GetMesh() return self.editor.FindEqualElements(MeshOrSubMeshOrGroup) ## Merges elements in each given group.