]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
clear computation status if Compute invoked with dimension less than previous
authorptv <ptv@opencascade.com>
Wed, 17 Dec 2008 15:32:43 +0000 (15:32 +0000)
committerptv <ptv@opencascade.com>
Wed, 17 Dec 2008 15:32:43 +0000 (15:32 +0000)
src/SMESH/SMESH_Gen.cxx

index c86699a2a01eba19438caaba567ad4a06a0b6c03..009bb151070a9037b6ac71ed674bd1174d91681a 100644 (file)
@@ -163,7 +163,12 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
 
       // check for preview dimension limitations
       if ( aShapesId && GetShapeDim( aShType ) > (int)aDim )
+      {
+        // clear compute state to not show previous compute errors
+        //  if preview invoked less dimension less than previous
+        smToCompute->ComputeStateEngine( SMESH_subMesh::CHECK_COMPUTE_STATE );
        continue;
+      }
 
       if (smToCompute->GetComputeState() == SMESH_subMesh::READY_TO_COMPUTE)
         smToCompute->ComputeStateEngine( SMESH_subMesh::COMPUTE );