]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
WIP agy/arch2_ic0
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 08:27:52 +0000 (09:27 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 08:27:52 +0000 (09:27 +0100)
src/HYBRIDPlugin/HYBRIDPlugin_HYBRID.cxx

index af748c7cc1055403b1be120a1deea31e1f6f5633..a773a0e1e36d7af6edf2591d71b86b012f2008cc 100644 (file)
@@ -167,11 +167,11 @@ bool HYBRIDPlugin_HYBRID::CheckHypothesis ( SMESH_Mesh&         aMesh,
 
 TopoDS_Shape HYBRIDPlugin_HYBRID::entryToShape(std::string entry)
 {
-  if ( SMESH_Gen_i::getStudyServant()->_is_nil() )
+  if ( SMESH_Gen_i::GetSMESHGen()->getStudyServant()->_is_nil() )
     throw SALOME_Exception("MG-HYBRID plugin can't work w/o publishing in the study");
   GEOM::GEOM_Object_var aGeomObj;
   TopoDS_Shape S = TopoDS_Shape();
-  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::getStudyServant()->FindObjectID( entry.c_str() );
+  SALOMEDS::SObject_var aSObj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->FindObjectID( entry.c_str() );
   if (!aSObj->_is_nil() ) {
     CORBA::Object_var obj = aSObj->GetObject();
     aGeomObj = GEOM::GEOM_Object::_narrow(obj);