]> SALOME platform Git repositories - plugins/hexoticplugin.git/commitdiff
Salome HOME
WIP agy/arch2_ic0
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 08:30:56 +0000 (09:30 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Feb 2021 08:31:47 +0000 (09:31 +0100)
src/GUI/HexoticPluginGUI_HypothesisCreator.cxx
src/HexoticPlugin/HexoticPlugin_Hexotic.cxx

index f4f73243d51e2988abb0be7b8f919db005254a91..1e5e6f062e6a933643f51b12aeaa2c5e2d716e9d 100644 (file)
@@ -748,7 +748,7 @@ bool HexoticPluginGUI_HypothesisCreator::readSizeMapsFromWidgets( HexoticHypothe
 GEOM::GEOM_Object_var HexoticPluginGUI_HypothesisCreator::entryToObject( std::string entry) const
 {
   GEOM::GEOM_Object_var aGeomObj;
-   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);
index 5f414a6d55b744bd03f02da1bdd6b5d650c2c8fe..80dd20ffca115be03219165e426e93b5986bd795 100644 (file)
@@ -905,7 +905,7 @@ TopoDS_Shape HexoticPlugin_Hexotic::entryToShape(std::string entry)
 {
   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);