From: eap Date: Fri, 3 Apr 2009 14:26:25 +0000 (+0000) Subject: 0020210: EDF SMESH 976: Update of a smesh group after modification of the associated... X-Git-Tag: V5_1_2rc1~69 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c240681110c2468be6515d20eae434a44a395a6;p=modules%2Fsmesh.git 0020210: EDF SMESH 976: Update of a smesh group after modification of the associated geom group Make SMESH_Gen update meshes at switching GEOM->SMESH --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 50f44fb18..6105681a0 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3319,6 +3319,12 @@ bool SMESHGUI::activateModule( SUIT_Study* study ) action( 33)->setEnabled(true); // Delete: Key_Delete action(1101)->setEnabled(true); // Rename: Key_F2 + // 0020210. Make SMESH_Gen update meshes at switching GEOM->SMESH + GetSMESHGen()->SetCurrentStudy(SALOMEDS::Study::_nil()); + if ( SalomeApp_Study* s = dynamic_cast( study )) + if ( _PTR(Study) aStudy = s->studyDS()) + GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() ); + return res; }