mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 04:30:39 +05:00
Fix for bug IPAL12063.
This commit is contained in:
parent
ee5e60fdb2
commit
e4837c298d
@ -797,7 +797,7 @@ namespace{
|
|||||||
SMESH::SMESH_subMesh_var aSubMesh = SMESH::SMESH_subMesh::_nil();
|
SMESH::SMESH_subMesh_var aSubMesh = SMESH::SMESH_subMesh::_nil();
|
||||||
|
|
||||||
_PTR(ChildIterator) it = aStudy->NewChildIterator(obj);
|
_PTR(ChildIterator) it = aStudy->NewChildIterator(obj);
|
||||||
if ( it->More() ){
|
for ( ; it->More(); it->Next() ){
|
||||||
_PTR(SObject) CSO = it->Value();
|
_PTR(SObject) CSO = it->Value();
|
||||||
aSubMesh = SMESH::SMESH_subMesh::_narrow( SMESH::SObjectToObject( CSO ) );
|
aSubMesh = SMESH::SMESH_subMesh::_narrow( SMESH::SObjectToObject( CSO ) );
|
||||||
if ( !aSubMesh->_is_nil() )
|
if ( !aSubMesh->_is_nil() )
|
||||||
@ -806,6 +806,7 @@ namespace{
|
|||||||
_PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh);
|
_PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh);
|
||||||
if (aMeshSO)
|
if (aMeshSO)
|
||||||
SMESH::ModifiedMesh(aMeshSO, false);
|
SMESH::ModifiedMesh(aMeshSO, false);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
aStudyBuilder->RemoveObjectWithChildren( obj );
|
aStudyBuilder->RemoveObjectWithChildren( obj );
|
||||||
|
Loading…
Reference in New Issue
Block a user