0022108: EDF 2547 SMESH: Duplicate elements only

Modify UniqueName() to look through all objects (groups, sub-meshes
etc) and not only meshes.
This commit is contained in:
eap 2013-05-28 16:49:06 +00:00
parent 4effbfc0dc
commit 251eb76e54

View File

@ -95,6 +95,7 @@ namespace SMESH
if ( !p ) p = aStudy->FindComponent( "SMESH" ); if ( !p ) p = aStudy->FindComponent( "SMESH" );
if ( p ) { if ( p ) {
_PTR(ChildIterator) iter = aStudy->NewChildIterator( p ); _PTR(ChildIterator) iter = aStudy->NewChildIterator( p );
iter->InitEx(/*allLevels=*/true);
int idx = 0; int idx = 0;
while( true ) { while( true ) {
bool found = false; bool found = false;