mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-09 18:43:08 +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 ) ) {
|
if ( !useCaseBuilder->IsUseCaseNode( 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_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() );
|
useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user