PAL10100 - just computed mesh must be selected in VTK

This commit is contained in:
asl 2005-11-08 09:50:41 +00:00
parent a2fe500c74
commit 8b1761d4a6

View File

@ -1268,10 +1268,11 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
case 701: // COMPUTE MESH
{
if(checkLock(aStudy)) break;
if ( vtkwnd ) {
LightApp_SelectionMgr *Sel = selectionMgr();
SALOME_ListIO selected; Sel->selectedObjects( selected );
LightApp_SelectionMgr *Sel = selectionMgr();
SALOME_ListIO selected; Sel->selectedObjects( selected );
if ( vtkwnd ) {
int nbSel = selected.Extent();
if (nbSel != 1){
break;
@ -1364,6 +1365,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
tr("SMESH_BUT_OK"));
}
updateObjBrowser();
Sel->setSelectedObjects( selected );
break;
}