::highlight(bool theHighlight,
Selection_Mode theSelectionMode)
{
+ myHighlightActor->SetVisibility( false );
+ myOutlineActor->SetVisibility( false );
+
if(hasHighlight() && theSelectionMode == ActorSelection)
highlight(theHighlight);
else{
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 );
}
}