Salome HOME
Restore fix for the '21907: EDF 2397 SMESH: Bugs with "Viscous Layers"' issue, which...
authorrnv <rnv@opencascade.com>
Thu, 23 Jul 2015 12:32:44 +0000 (15:32 +0300)
committerrnv <rnv@opencascade.com>
Thu, 23 Jul 2015 12:32:44 +0000 (15:32 +0300)
src/SVTK/SVTK_InteractorStyle.cxx

index 5ab2ac63ad2454251d26d628f069ade4f1653013..63d3538332765949191e5d630a82d8b44f2e4618 100644 (file)
@@ -1200,6 +1200,11 @@ void SVTK_InteractorStyle::onFinishOperation()
 
           if( anActorCollection )
           {
+           if( !myShiftState && 
+               anActorCollection->GetNumberOfItems () > 1 && 
+               myLastHighlitedActor.GetPointer() ) {
+             anActorCollection->RemoveItem ( myLastHighlitedActor.GetPointer() );
+           }
             anActorCollection->InitTraversal();
             while( vtkActor* aVTKActor = anActorCollection->GetNextActor() )
             {