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

index 100a59560df44c14e962bf13ac76dbec1b82928f..2500404533a5cb1f7b0c9c5936514c032ecada71 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();