From 4986d0a274862b02d4cac7d5fc826339d6812895 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 24 Feb 2012 11:49:16 +0000 Subject: [PATCH] 0021208: Performance issue when loading SMESH with an hdf file containing a big mesh Do not forget imported mesh on hypotheses modification --- src/SMESH_I/SMESH_PreMeshInfo.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2