From bf2f45b25858609967ecdde99bbca78f7b3ac6c9 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 6 Oct 2011 16:02:40 +0000 Subject: [PATCH] fix Mesh_UseExistingElements.SourceEdges() --- src/SMESH_SWIG/smeshDC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2