From: eap Date: Mon, 10 Apr 2006 15:10:54 +0000 (+0000) Subject: improve SubMeshesComputed() X-Git-Tag: T3_2_0b1_pre1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51593dbf137e34a8cfe4230e1467beee7dd94b43;p=modules%2Fsmesh.git improve SubMeshesComputed() --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index a2c73ac6d..9fb17c2ca 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -197,8 +197,8 @@ bool SMESH_subMesh::SubMeshesComputed() // one face with READY_TO_COMPUTE state in order to be able to // 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() || ds->GetElements()->more() )); + bool computeOk = (sm->GetComputeState() == COMPUTE_OK || + (ds && ( ds->GetNodes()->more() || ds->GetElements()->more() ))); if (!computeOk) { const TopoDS_Shape & ss = sm->GetSubShape();