From 0e24b8937cf8891bf7414f1b052c18c4cb1f842b Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 13 Apr 2006 14:24:12 +0000 Subject: [PATCH] Fix on Bug12171 Picking functionality is not work --- src/SVTK/SALOME_Actor.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 495657d2e..2da51db4e 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -372,6 +372,9 @@ SALOME_Actor SVTK_SelectionEvent* theSelectionEvent, bool theIsHighlight) { + if ( !GetPickable() ) + return false; + vtkRenderer *aRenderer = theInteractorStyle->GetCurrentRenderer(); // myPreHighlightActor->SetVisibility( false ); @@ -511,6 +514,9 @@ SALOME_Actor SVTK_SelectionEvent* theSelectionEvent, bool theIsHighlight) { + if ( !GetPickable() ) + return false; + myOutlineActor->SetVisibility( false ); myHighlightActor->SetVisibility( false ); -- 2.39.2