]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL10974. Fix SubMeshesComputed(): there may be elements but no nodes in a submesh V2_2_7
authoreap <eap@opencascade.com>
Mon, 26 Dec 2005 10:44:45 +0000 (10:44 +0000)
committereap <eap@opencascade.com>
Mon, 26 Dec 2005 10:44:45 +0000 (10:44 +0000)
src/SMESH/SMESH_subMesh.cxx

index d3f8e90f347825aa22ef17f21c7b871b571ba196..94512bdbcbef515ebdc6c6e88c9ffcc508029439 100644 (file)
@@ -202,7 +202,7 @@ bool SMESH_subMesh::SubMeshesComputed()
     // recompute 3D when a locale triangle hypo changes (see PAL7428).
     // So we check if mesh is really present
     //bool computeOk = (sm->GetComputeState() == COMPUTE_OK);
-    bool computeOk = ( ds && ds->GetNodes()->more() );
+    bool computeOk = ( ds && ( ds->GetNodes()->more() || ds->GetElements()->more() ));
     if (!computeOk)
     {
       const TopoDS_Shape & ss = sm->GetSubShape();