From bb2bc53b7fb43b9c2ba7905997290a7fe60b2080 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 3 Feb 2021 09:20:54 +0100 Subject: [PATCH] WIP --- src/GMSHPlugin/GMSHPlugin_Mesher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx index 282551b..8d64720 100644 --- a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx @@ -299,13 +299,13 @@ void GMSHPlugin_Mesher::CreateGmshCompounds() { GEOM::GEOM_Object_var aGeomObj; TopoDS_Shape geomShape = TopoDS_Shape(); - SALOMEDS::SObject_var aSObj = SMESH_Gen_i::getStudyServant()->FindObjectID( (*its).c_str() ); + SALOMEDS::SObject_var aSObj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->FindObjectID( (*its).c_str() ); SALOMEDS::GenericAttribute_var anAttr; if (!aSObj->_is_nil() && aSObj->FindAttribute(anAttr, "AttributeIOR")) { SALOMEDS::AttributeIOR_var anIOR = SALOMEDS::AttributeIOR::_narrow(anAttr); CORBA::String_var aVal = anIOR->Value(); - CORBA::Object_var obj = SMESH_Gen_i::getStudyServant()->ConvertIORToObject(aVal); + CORBA::Object_var obj = SMESH_Gen_i::GetSMESHGen()->getStudyServant()->ConvertIORToObject(aVal); aGeomObj = GEOM::GEOM_Object::_narrow(obj); } geomShape = smeshGen_i->GeomObjectToShape( aGeomObj.in() ); -- 2.39.2