Salome HOME
0054473: TC9.2.0: SMESH: results of union, intersection and cut of groups operations...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 1e020c81066282000f6d4a5e371e927e3da3db37..7c386d35cde67c3299e719f12be0768da2f055e3 100644 (file)
 #include <SUIT_OverrideCursor.h>
 #include <SUIT_ResourceMgr.h>
 #include <SUIT_Session.h>
+#include <SVTK_Renderer.h>
 #include <SVTK_ViewManager.h>
 #include <SVTK_ViewModel.h>
 #include <SVTK_ViewWindow.h>
@@ -2727,6 +2728,10 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       else
         aSel->setSelectedObjects( to_process );
 
+      if ( vtkwnd && vtkwnd->GetRenderer() && !isStudyLocked() &&
+           ( theCommandID==SMESHOp::OpShow || theCommandID==SMESHOp::OpShowOnly ) )
+        vtkwnd->GetRenderer()->AdjustActors();
+
       break;
     }