mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-24 16:30:35 +05:00
Iterate all children of study and append it to the it's father.
This commit is contained in:
parent
251a6167ff
commit
a992b19d3a
@ -593,8 +593,8 @@ CORBA::Boolean GEOM_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
|
||||
useCaseBuilder->SetRootCurrent();
|
||||
useCaseBuilder->Append( theComponent ); // component object is added as the top level item
|
||||
SALOMEDS::ChildIterator_var it = theComponent->GetStudy()->NewChildIterator( theComponent );
|
||||
for (it->Init(); it->More(); it->Next()) {
|
||||
useCaseBuilder->AppendTo( theComponent, it->Value() );
|
||||
for (it->InitEx(true); it->More(); it->Next()) {
|
||||
useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user