From e7f4d20c4b3a397fb1f72f2f5e8b82e8681b3aa9 Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 6 Mar 2009 13:55:48 +0000 Subject: [PATCH] Fix of 'c' problem described in 0019932 issue (see comment 0004258). Now 'Display' method checks is the actor should be displayed or not (ActiveState for VISU actors). --- src/SVTK/SVTK_ViewModel.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index f49b3ebd1..2c1e3c57a 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -418,6 +418,8 @@ void SVTK_Viewer::Display( const SALOME_VTKPrs* prs ) anActorCollection->InitTraversal(); while(vtkActor* anActor = anActorCollection->GetNextActor()){ if(SALOME_Actor* anAct = SALOME_Actor::SafeDownCast(anActor)){ + if(!anAct->ShouldBeDisplayed()) + continue; // Set visibility flag // Temporarily commented to avoid awful dependecy on SALOMEDS // TODO: better mechanism of storing display/erse status in a study -- 2.39.2