]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix on Bug12171
authorapo <apo@opencascade.com>
Thu, 13 Apr 2006 14:24:12 +0000 (14:24 +0000)
committerapo <apo@opencascade.com>
Thu, 13 Apr 2006 14:24:12 +0000 (14:24 +0000)
   Picking functionality is not work

src/SVTK/SALOME_Actor.cxx

index 495657d2e1b14d85428ffe7fa1d313de1549bafb..2da51db4e64ef179052b49af3664651f242165bd 100644 (file)
@@ -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 );