From 0925bd9c616626af9239807a8a6279d878c4a7aa Mon Sep 17 00:00:00 2001 From: bri Date: Thu, 18 Apr 2013 08:12:22 +0000 Subject: [PATCH] sroring the mesh name during checkin (GetModifiedData) --- src/SMESH_I/SMESH_Gen_i.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 81ad54152..bfc348791 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -5086,13 +5086,15 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId) if(!aCORBAMesh->_is_nil()) { SMESH_Mesh_i* myImpl = dynamic_cast(GetServant(aCORBAMesh).in()); if (myImpl) { - CORBA::String_var objStr = GetORB()->object_to_string(anObj); - int id = myStudyContext->findId(string(objStr.in())); + //CORBA::String_var objStr = GetORB()->object_to_string(anObj); + //int id = myStudyContext->findId(string(objStr.in())); + CORBA::String_var objName = aSO->GetName(); SMESHDS_Mesh* mySMESHDSMesh = myImpl->GetImpl().GetMeshDS(); if (mySMESHDSMesh->NbNodes() > 0) { // write mesh data to med file aWriter.SetMesh(mySMESHDSMesh); - aWriter.SetMeshId(id); + //aWriter.SetMeshId(id); + aWriter.SetMeshName(objName.in()); aNumMeshes++; } else { MESSAGE("Mesh has zero nodes and can not be exported"); -- 2.39.2