From 60c362b9fe53acb87ce2b1a0c7a6530c2473cafd Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 4 Apr 2013 11:08:56 +0000 Subject: [PATCH] Fix of INT PAL 0051865: VTK viewer ? Hide all does not work. --- src/SVTK/SVTK_ViewModel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index 615316342..1707a2b87 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -666,10 +666,10 @@ void SVTK_Viewer::EraseAll( const bool forced ) //Handle(SALOME_InteractiveObject) anObj = anAct->getIO(); //if(!anObj.IsNull() && anObj->hasEntry() && aStudy) // ToolsGUI::SetVisibility(aStudy,anObj->getEntry(),false,this); - if(forced) + if(forced){ if(SVTK_Renderer* aRnd = aView->GetRenderer()) aRnd->RemoveActor(anAct); - else{ + }else{ // just erase actor anAct->SetVisibility( false ); // erase dependent actors -- 2.39.2