X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI.cxx;h=3085c7a3fc18d0afc661d1eec90aad1b7637eb36;hp=713d81c1cdfeabe5861a2f9e905b03f91fad912c;hb=3035f52105d9e9966aaf291ca34ec01b086fe468;hpb=9af675c36d5be1f00ab28a82b5b98c6158d1dd99 diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 713d81c1c..3085c7a3f 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -794,6 +794,20 @@ namespace{ // san - it's no use opening a transaction here until UNDO/REDO is provided in SMESH //SUIT_Operation *op = new SALOMEGUI_ImportOperation(myActiveStudy); //op->start(); + SMESH::SMESH_subMesh_var aSubMesh = SMESH::SMESH_subMesh::_nil(); + + _PTR(ChildIterator) it = aStudy->NewChildIterator(obj); + if ( it->More() ){ + _PTR(SObject) CSO = it->Value(); + aSubMesh = SMESH::SMESH_subMesh::_narrow( SMESH::SObjectToObject( CSO ) ); + if ( !aSubMesh->_is_nil() ) + { + SMESH::SMESH_Mesh_var aMesh = aSubMesh->GetFather(); + _PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh); + if (aMeshSO) + SMESH::ModifiedMesh(aMeshSO, false); + } + } aStudyBuilder->RemoveObjectWithChildren( obj ); //op->finish(); }