From 4ad5bce0b800d10504e0d2a196b272b839b5d7fa Mon Sep 17 00:00:00 2001 From: ptv Date: Wed, 17 Dec 2008 15:32:43 +0000 Subject: [PATCH] clear computation status if Compute invoked with dimension less than previous --- src/SMESH/SMESH_Gen.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index c86699a2a..009bb1510 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -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 ); -- 2.39.2