Salome HOME
0020427: EDF 868 SMESH : Be able to define the submeshing order
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshOrderOp.cxx
index 5c26efc2ca363474dcb334db115bb8dca2b92e66..00b63da3a4e9f842cced423403be45c5e9124914 100644 (file)
@@ -299,6 +299,11 @@ bool SMESHGUI_MeshOrderMgr::SetMeshOrder( const  ListListId& theListListIds )
     }
   }
 
+  // is it enought to set modifid attribute on root mesh objects only?
+  //  it is seems that modifaction flag will be set on child submeshes 
+  //  automatically  (see SMESH::ModifiedMesh for details)
+  SMESH::ModifiedMesh( aMeshSObj, false, false );
+
   SMESH::submesh_array_array_var meshOrder = new SMESH::submesh_array_array();
   meshOrder->length(theListListIds.count() );
   ListListId::const_iterator it = theListListIds.constBegin();
@@ -313,6 +318,8 @@ bool SMESHGUI_MeshOrderMgr::SetMeshOrder( const  ListListId& theListListIds )
 
     meshOrder[ i++ ] = subMeshList;
   }
+  // update object browser
+  SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 );
 
   return myMesh->SetMeshOrder(meshOrder);
 }