mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
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
This commit is contained in:
parent
bfc97bbd01
commit
8058034c5d
@ -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<SalomeApp_Study*>( study ))
|
||||
if ( _PTR(Study) aStudy = s->studyDS())
|
||||
GetSMESHGen()->SetCurrentStudy( _CAST(Study,aStudy)->GetStudy() );
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user