]> SALOME platform Git repositories - plugins/ghs3dplugin.git/commitdiff
Salome HOME
WIP agy/arch2_ic0
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 07:57:20 +0000 (08:57 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 07:57:20 +0000 (08:57 +0100)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 0030d608a86f60efda5162e79121579ae2d50675..192962a8cea2916cef44d88fab8cfba3f33f658a 100644 (file)
@@ -207,12 +207,12 @@ bool GHS3DPlugin_GHS3D::CheckHypothesis ( SMESH_Mesh&         aMesh,
 
 TopoDS_Shape GHS3DPlugin_GHS3D::entryToShape(std::string entry)
 {
-  if ( SMESH_Gen_i::getStudyServant()->_is_nil() )
+  if ( SMESH_Gen_i::GetSMESHGen()->getStudyServant()->_is_nil() )
     throw SALOME_Exception("MG-Tetra 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);