From 8bbdd756c513c7af6f92cb6a97a905c376fb3681 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 2 Feb 2012 12:38:29 +0000 Subject: [PATCH] Improvement of the highlighting/selection mechanism for the case of several coincident actors. Additional fix. --- src/SVTK/SVTK_InteractorStyle.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index 5c59da5c8..5d3599e71 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -1052,7 +1052,8 @@ void SVTK_InteractorStyle::onFinishOperation() { if( SALOME_Actor* anActor = SALOME_Actor::SafeDownCast( aVTKActor ) ) { - if( anActor->Highlight( this, aSelectionEvent, true ) ) + if( anActor->Highlight( this, aSelectionEvent, true ) && + anActor->isHighlighted() ) { aHighlightedActor = anActor; break; -- 2.39.2