]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Additional fix for the bug 0021254: EDF 1861 VISU: Eye symbol and VISU presentations.
authorrnv <rnv@opencascade.com>
Wed, 9 Nov 2011 08:21:15 +0000 (08:21 +0000)
committerrnv <rnv@opencascade.com>
Wed, 9 Nov 2011 08:21:15 +0000 (08:21 +0000)
src/VISU_I/VISU_ColoredPrs3dCache_i.cc

index 6df8e7443b1bd6c6cdf94efc955d99c45124daac..a385a8a01fdecdf11346cdd840d79abd0b202a66 100644 (file)
@@ -39,6 +39,7 @@
 #include "VISU_Actor.h"
 
 #include "VISU_PipeLine.hxx"
+#include "VISU_Tools.h"
 
 #include "SALOME_Event.h"
 
@@ -712,6 +713,7 @@ VISU::ColoredPrs3dCache_i
            ProcessVoidEvent(new TAddActorEvent(anActor,aViewWindow));
            //aViewWindow->AddActor(anActor);
            anActor->SetVisibility(true);
+           SetVisibilityState( aHolderEntry, Qtx::ShownState);
          }
 
          if(aPrs3d != aLastVisitedPrs3d)
@@ -728,8 +730,10 @@ VISU::ColoredPrs3dCache_i
              aNewActor = aPrs3d->CreateActor();
              ProcessVoidEvent(new TAddActorEvent(aNewActor,aViewWindow));
              //aViewWindow->AddActor(aNewActor);
-           }else
+           }else {
              aNewActor->SetVisibility(true);
+             SetVisibilityState( aHolderEntry, Qtx::ShownState);
+           }
            aNewActor->DeepCopy(anActor);
 
            aPrs3d->SetActiveState(true);