From 8058034c5dcc7601217757b2c9f33ee0b87992b0 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 3 Apr 2009 14:26:52 +0000 Subject: [PATCH] 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 --- src/SMESHGUI/SMESHGUI.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 723aec577..d9ee51032 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3252,6 +3252,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; } -- 2.39.2