Salome HOME
Merge remote branch 'origin/master' into V9_3_BR
authorvsr <vsr@opencascade.com>
Thu, 28 Mar 2019 14:46:41 +0000 (17:46 +0300)
committervsr <vsr@opencascade.com>
Thu, 28 Mar 2019 14:46:41 +0000 (17:46 +0300)
src/SMESH_I/SMESH_Mesh_i.cxx

index 0a36c5b07198ba0a4c9034c069196df4ea0875a2..0b4d0937bbb145a5b7977fbd1016f7f154cc1e10 100644 (file)
@@ -6427,11 +6427,15 @@ TListOfListOfInt SMESH_Mesh_i::findConcurrentSubMeshes()
     aPythonDump << " ]";
     subMeshOrder.push_back( subMeshIds );
 
-    // clear collected submeshes
+    // clear collected sub-meshes
     set<const SMESH_subMesh*>::iterator clrIt = subMeshToClear.begin();
     for ( ; clrIt != subMeshToClear.end(); clrIt++ )
       if ( SMESH_subMesh* sm = (SMESH_subMesh*)*clrIt )
+      {
         sm->ComputeStateEngine( SMESH_subMesh::CLEAN );
+        if ( SMESH_Algo* algo = sm->GetAlgo() ) // #16748
+          sm->AlgoStateEngine( SMESH_subMesh::MODIF_HYP, algo ); // to clear a cached algo
+      }
   }
   aPythonDump << " ])";