]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix of 'c' problem described in 0019932 issue (see comment 0004258).
authorakl <akl@opencascade.com>
Fri, 6 Mar 2009 13:55:48 +0000 (13:55 +0000)
committerakl <akl@opencascade.com>
Fri, 6 Mar 2009 13:55:48 +0000 (13:55 +0000)
Now 'Display' method checks is the actor should be displayed or not (ActiveState for VISU actors).

src/SVTK/SVTK_ViewModel.cxx

index f49b3ebd1921ecf54ed5c7a2c27687275c6404a6..2c1e3c57ab242e69f41edbf612527cf685e7b1af 100644 (file)
@@ -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