From: akl Date: Fri, 6 Mar 2009 13:55:48 +0000 (+0000) Subject: Fix of 'c' problem described in 0019932 issue (see comment 0004258). X-Git-Tag: V5_1_1rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7f4d20c4b3a397fb1f72f2f5e8b82e8681b3aa9;p=modules%2Fgui.git 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). --- 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