From: eap Date: Fri, 24 Feb 2012 11:49:16 +0000 (+0000) Subject: 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh X-Git-Tag: V6_5_0a1~97 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4986d0a274862b02d4cac7d5fc826339d6812895;p=modules%2Fsmesh.git 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh Do not forget imported mesh on hypotheses modification --- diff --git a/src/SMESH_I/SMESH_PreMeshInfo.cxx b/src/SMESH_I/SMESH_PreMeshInfo.cxx index e548f1f94..31cd9aeb7 100644 --- a/src/SMESH_I/SMESH_PreMeshInfo.cxx +++ b/src/SMESH_I/SMESH_PreMeshInfo.cxx @@ -1179,7 +1179,8 @@ void SMESH_PreMeshInfo::ForgetAllData() const void SMESH_PreMeshInfo::ForgetOrLoad() const { - if ( SMESH_Gen_i::GetSMESHGen()->ToForgetMeshDataOnHypModif() ) + if ( SMESH_Gen_i::GetSMESHGen()->ToForgetMeshDataOnHypModif() && + _mesh->HasShapeToMesh()) ForgetAllData(); else FullLoadFromFile();