Salome HOME
Fix regression of non-regression tests
[modules/smesh.git] / src / SMESH_SWIG / StdMeshersBuilder.py
index 98acce5f6d38b3d3943984d5619d1d0ecf475b8b..d9ad9bf5ee3643766cfa4942770d0c2e6b2301cf 100644 (file)
@@ -1421,6 +1421,8 @@ class StdMeshersBuilder_UseExistingElements_1D2D(Mesh_Algorithm):
                                       hyp.GetCopySourceMesh() == args[1], args[2] )
         hyp = self.Hypothesis("ImportSource2D", [groups, toCopyMesh, toCopyGroups],
                               UseExisting=UseExisting, CompareMethod=compFun, toAdd=False)
+        if groups and isinstance( groups, SMESH._objref_SMESH_GroupBase ):
+            groups = [groups]
         hyp.SetSourceFaces(groups)
         hyp.SetCopySourceMesh(toCopyMesh, toCopyGroups)
         self.mesh.AddHypothesis(hyp, self.geom)