From: apo Date: Tue, 11 Oct 2005 12:27:24 +0000 (+0000) Subject: Fix on Bug GVIEW10217 X-Git-Tag: BR-D5-38-2003_D2005-12-10~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3275f6ff28d3226f15ba6623f5b3fb6e91c698ec;p=modules%2Fgui.git Fix on Bug GVIEW10217 Deselection of faces doesn't work --- 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 ); } }