From a9514db2e765b3c415e2e0f255f9b7beeeda6020 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 21 Oct 2009 10:25:24 +0000 Subject: [PATCH] Issue 0020544: EDF 1140 SMESH: Dumpstudy with FindEqualElments function not loadable --- src/SMESH_SWIG/smeshDC.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.39.2