Salome HOME
improve SubMeshesComputed()
authoreap <eap@opencascade.com>
Mon, 10 Apr 2006 15:10:54 +0000 (15:10 +0000)
committereap <eap@opencascade.com>
Mon, 10 Apr 2006 15:10:54 +0000 (15:10 +0000)
src/SMESH/SMESH_subMesh.cxx

index a2c73ac6dbe793d38b1725d89d872fed4a9971e7..9fb17c2cae78d21751310a6a2f79ef9450787bb9 100644 (file)
@@ -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();