mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 10:00:33 +05:00
PAL10100 - just computed mesh must be selected in VTK
This commit is contained in:
parent
a2fe500c74
commit
8b1761d4a6
@ -1268,10 +1268,11 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
case 701: // COMPUTE MESH
|
case 701: // COMPUTE MESH
|
||||||
{
|
{
|
||||||
if(checkLock(aStudy)) break;
|
if(checkLock(aStudy)) break;
|
||||||
if ( vtkwnd ) {
|
|
||||||
LightApp_SelectionMgr *Sel = selectionMgr();
|
LightApp_SelectionMgr *Sel = selectionMgr();
|
||||||
SALOME_ListIO selected; Sel->selectedObjects( selected );
|
SALOME_ListIO selected; Sel->selectedObjects( selected );
|
||||||
|
|
||||||
|
if ( vtkwnd ) {
|
||||||
int nbSel = selected.Extent();
|
int nbSel = selected.Extent();
|
||||||
if (nbSel != 1){
|
if (nbSel != 1){
|
||||||
break;
|
break;
|
||||||
@ -1364,6 +1365,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
tr("SMESH_BUT_OK"));
|
tr("SMESH_BUT_OK"));
|
||||||
}
|
}
|
||||||
updateObjBrowser();
|
updateObjBrowser();
|
||||||
|
Sel->setSelectedObjects( selected );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user