From: eap Date: Fri, 7 Oct 2011 11:35:39 +0000 (+0000) Subject: 0020918: EDF 1447 SMESH: Mesh common borders (stepbystep.py) X-Git-Tag: V6_4_0a1~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1064303dd1b75b8d697bc9b3b8782ba8a2169c27;p=modules%2Fsmesh.git 0020918: EDF 1447 SMESH: Mesh common borders (stepbystep.py) in _Listener::ProcessEvent(), clear n2n and e2e maps at CLEAN event --- diff --git a/src/StdMeshers/StdMeshers_Import_1D.cxx b/src/StdMeshers/StdMeshers_Import_1D.cxx index bf8fc6802..649a44d96 100644 --- a/src/StdMeshers/StdMeshers_Import_1D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D.cxx @@ -457,8 +457,9 @@ namespace // INTERNAL STUFF { removeImport = true; } - else if ( SMESH_subMesh::REMOVE_ALGO == event || - SMESH_subMesh::REMOVE_FATHER_ALGO == event ) + else if (( SMESH_subMesh::REMOVE_ALGO == event || + SMESH_subMesh::REMOVE_FATHER_ALGO == event ) && + SMESH_subMesh::ALGO_EVENT == eventType ) { SMESH_Gen* gen = subMesh->GetFather()->GetGen(); SMESH_Algo* algo = gen->GetAlgo(*subMesh->GetFather(),subMesh->GetSubShape() ); @@ -470,7 +471,9 @@ namespace // INTERNAL STUFF // treate removal of Import algo from subMesh removeSubmesh( subMesh, (_ListenerData*) data ); } - else if ( modifHyp ) + else if ( modifHyp || + ( SMESH_subMesh::CLEAN == event && + SMESH_subMesh::COMPUTE_EVENT == eventType)) { // treate modification of ImportSource hypothesis clearSubmesh( subMesh, (_ListenerData*) data, /*all=*/false );