0021208: Performance issue when loading SMESH with an hdf file containing a big mesh

Do not forget imported mesh on hypotheses modification
This commit is contained in:
eap 2012-02-24 11:49:16 +00:00
parent 19e34e5301
commit 4986d0a274

View File

@ -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();