0054473: TC9.2.0: SMESH: results of union, intersection and cut of groups operations are not updated correctly. 0054487: TC9.2.0: SMESH: VTK viewer is updated correctly only after the second call of Show Only command

This commit is contained in:
mkr 2018-12-28 13:14:21 +03:00 committed by eap
parent 1bc6da3e05
commit c511644fda

View File

@ -120,6 +120,7 @@
#include <SUIT_OverrideCursor.h> #include <SUIT_OverrideCursor.h>
#include <SUIT_ResourceMgr.h> #include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h> #include <SUIT_Session.h>
#include <SVTK_Renderer.h>
#include <SVTK_ViewManager.h> #include <SVTK_ViewManager.h>
#include <SVTK_ViewModel.h> #include <SVTK_ViewModel.h>
#include <SVTK_ViewWindow.h> #include <SVTK_ViewWindow.h>
@ -2727,6 +2728,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
else else
aSel->setSelectedObjects( to_process ); aSel->setSelectedObjects( to_process );
if ( vtkwnd && vtkwnd->GetRenderer() && !isStudyLocked() &&
( theCommandID==SMESHOp::OpShow || theCommandID==SMESHOp::OpShowOnly ) )
vtkwnd->GetRenderer()->AdjustActors();
break; break;
} }