From: eap Date: Mon, 26 Dec 2005 10:36:57 +0000 (+0000) Subject: PAL10953. Fix GetSubmeshComputed(): there may be elements but no nodes in a submesh X-Git-Tag: T_Before_Join_BR_3_1_0deb~2 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=96874fc4b6eeeec6b368ffefca982d3339de3519 PAL10953. Fix GetSubmeshComputed(): 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 100a59560..250040453 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();