From: eap Date: Thu, 6 Oct 2011 16:02:40 +0000 (+0000) Subject: fix Mesh_UseExistingElements.SourceEdges() X-Git-Tag: V6_4_0a1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf2f45b25858609967ecdde99bbca78f7b3ac6c9;p=modules%2Fsmesh.git fix Mesh_UseExistingElements.SourceEdges() --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index b02092b41..a11feb4d6 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -6421,7 +6421,7 @@ class Mesh_UseExistingElements(Mesh_Algorithm): # @param UseExisting if ==true - searches for the existing hypothesis created with # the same parameters, else (default) - creates a new one def SourceEdges(self, groups, toCopyMesh=False, toCopyGroups=False, UseExisting=False): - if self.algo.GetName() == "Import_2D": + if self.algo.GetName() != "Import_1D": raise ValueError, "algoritm dimension mismatch" for group in groups: AssureGeomPublished( self.mesh, group )