PAL10974. Fix SubMeshesComputed(): there may be elements but no nodes in a submesh

This commit is contained in:
eap 2005-12-26 10:44:45 +00:00
parent 5f031651f0
commit e69e13adbf

View 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();