From: eap Date: Mon, 26 Dec 2005 10:44:45 +0000 (+0000) Subject: PAL10974. Fix SubMeshesComputed(): there may be elements but no nodes in a submesh X-Git-Tag: V2_2_7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e69e13adbffe691ea44120a1a25f81089bfae5f5;p=modules%2Fsmesh.git PAL10974. Fix SubMeshesComputed(): there may be elements but no nodes in a submesh --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index d3f8e90f3..94512bdbc 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -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();