From a88279bf3fcd1dc20e57e7265911e9548e1eefbf Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 23 Jul 2015 15:32:44 +0300 Subject: [PATCH] Restore fix for the '21907: EDF 2397 SMESH: Bugs with "Viscous Layers"' issue, which was removed by mistake. --- src/SVTK/SVTK_InteractorStyle.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index 5ab2ac63a..63d353833 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -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() ) { -- 2.39.2