mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 08:50:36 +05:00
GEOMGUI uses standard LifeCycle to instanciate GEOM engine
This commit is contained in:
parent
8df37edc3d
commit
58bfedf8f6
@ -223,17 +223,7 @@ GeometryGUI::GeometryGUI() : SalomeApp_Module( "GEOM" )
|
||||
if ( CORBA::is_nil( myComponentGeom ) )
|
||||
{
|
||||
SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService();
|
||||
Engines::EngineComponent_var comp;
|
||||
if( dynamic_cast<SALOME_NamingService *>(ns) )
|
||||
{
|
||||
comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" );
|
||||
}
|
||||
else
|
||||
{
|
||||
comp = RetrieveGEOMInstance();
|
||||
CORBA::Object_var comp2 = CORBA::Object::_narrow(comp);
|
||||
KERNEL::RegisterCompo("GEOM",comp2);
|
||||
}
|
||||
Engines::EngineComponent_var comp = SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "GEOM" );
|
||||
myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user