mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Compatibility with old SALOME studies
This commit is contained in:
parent
b87a6c3f3b
commit
aa36eeade7
@ -595,8 +595,11 @@ CORBA::Boolean GEOM_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
|
||||
if ( !useCaseBuilder->IsUseCaseNode( theComponent ) ) {
|
||||
useCaseBuilder->SetRootCurrent();
|
||||
useCaseBuilder->Append( theComponent ); // component object is added as the top level item
|
||||
SALOMEDS::ChildIterator_wrap it = study->NewChildIterator( theComponent );
|
||||
for (it->InitEx(true); it->More(); it->Next()) {
|
||||
}
|
||||
|
||||
SALOMEDS::ChildIterator_wrap it = study->NewChildIterator( theComponent );
|
||||
for ( it->InitEx(true); it->More(); it->Next() ) {
|
||||
if ( !useCaseBuilder->IsUseCaseNode( it->Value() ) ) {
|
||||
useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user