mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00: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->SetRootCurrent();
|
||||||
useCaseBuilder->Append( theComponent ); // component object is added as the top level item
|
useCaseBuilder->Append( theComponent ); // component object is added as the top level item
|
||||||
SALOMEDS::ChildIterator_var it = theComponent->GetStudy()->NewChildIterator( theComponent );
|
SALOMEDS::ChildIterator_var it = theComponent->GetStudy()->NewChildIterator( theComponent );
|
||||||
for (it->Init(); it->More(); it->Next()) {
|
for (it->InitEx(true); it->More(); it->Next()) {
|
||||||
useCaseBuilder->AppendTo( theComponent, it->Value() );
|
useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user