mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 13:20:34 +05:00
check if module "GEOM" is found
This commit is contained in:
parent
ab4288fb65
commit
d696f7d582
@ -421,7 +421,8 @@ void SMESH_Gen_i::SetCurrentStudy( SALOMEDS::Study_ptr theStudy )
|
|||||||
}
|
}
|
||||||
|
|
||||||
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
||||||
aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
|
if( !myCurrentStudy->FindComponent( "GEOM" )->_is_nil() )
|
||||||
|
aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
|
||||||
|
|
||||||
// set current study for geom engine
|
// set current study for geom engine
|
||||||
//if ( !CORBA::is_nil( GetGeomEngine() ) )
|
//if ( !CORBA::is_nil( GetGeomEngine() ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user