//
Selection_Mode aSelectionMode = theSelectionEvent->mySelectionMode;
bool anIsShift = theSelectionEvent->myIsShift;
- if( !anIsShift ) {
+ if( !anIsShift || !theIsHighlight ) {
mySelector->RemoveIObject( this );
}
+ if ( !theIsHighlight )
+ return true;
+
float x = theSelectionEvent->myX;
float y = theSelectionEvent->myY;
float z = 0.0;
//
SALOME_Actor* anActor = GetFirstSALOMEActor(myPicker.GetPointer());
aSelectionEvent->myIsRectangle = false;
+
+ if(!myShiftState)
+ GetSelector()->ClearIObjects();
+
if(anActor){
anActor->Highlight( this, aSelectionEvent, true );
}else{
if(myLastHighlitedActor.GetPointer() && myLastHighlitedActor.GetPointer() != anActor)
myLastHighlitedActor->Highlight( this, aSelectionEvent, false );
- if(!myShiftState)
- GetSelector()->ClearIObjects();
}
myLastHighlitedActor = anActor;
}