]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
authoreap <eap@opencascade.com>
Fri, 24 Feb 2012 11:49:16 +0000 (11:49 +0000)
committereap <eap@opencascade.com>
Fri, 24 Feb 2012 11:49:16 +0000 (11:49 +0000)
     Do not forget imported mesh on hypotheses modification

src/SMESH_I/SMESH_PreMeshInfo.cxx

index e548f1f94e1d83bf5dd2ccbf8193bc69c9153eaf..31cd9aeb783702992df00d8484d42bb9fbc473d1 100644 (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();