From 3275f6ff28d3226f15ba6623f5b3fb6e91c698ec Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 11 Oct 2005 12:27:24 +0000 Subject: [PATCH] Fix on Bug GVIEW10217 Deselection of faces doesn't work --- src/SVTK/SALOME_Actor.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index fd3c506d2..8cad00b31 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -724,6 +724,9 @@ SALOME_Actor ::highlight(bool theHighlight, Selection_Mode theSelectionMode) { + myHighlightActor->SetVisibility( false ); + myOutlineActor->SetVisibility( false ); + if(hasHighlight() && theSelectionMode == ActorSelection) highlight(theHighlight); else{ @@ -732,11 +735,11 @@ SALOME_Actor if( !GetVisibility() ) return; - if(theSelectionMode == ActorSelection){ - myOutline->SetBounds( GetBounds() ); - myOutlineActor->SetVisibility( theHighlight ); - }else + if(theSelectionMode != ActorSelection) myHighlightActor->SetVisibility( theHighlight ); + + myOutline->SetBounds( GetBounds() ); + myOutlineActor->SetVisibility( theHighlight ); } } -- 2.39.2