From 6878546220c0ad2d3bd38703b8b76f21cd51b8ff Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 26 Jun 2009 13:31:35 +0000 Subject: [PATCH] Minor fix --- src/OBJECT/VISU_Actor.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OBJECT/VISU_Actor.cxx b/src/OBJECT/VISU_Actor.cxx index ea90a56d..1c29b5d7 100644 --- a/src/OBJECT/VISU_Actor.cxx +++ b/src/OBJECT/VISU_Actor.cxx @@ -1091,6 +1091,11 @@ VISU_Actor vtkFloatingPointType aDollyWas = anInteractor->GetDolly(); int aNumberOfFlyFramesWas = anInteractor->GetNumberOfFlyFrames(); + double aPosition[3]; + GetPosition( aPosition ); + for( int i = 0; i < 3; i++ ) + aFlyToCoord[i] += aPosition[i]; + anInteractor->SetDolly(0.0); anInteractor->SetNumberOfFlyFrames(aPickingSettings->GetStepNumber()); anInteractor->FlyTo(aRenderer, aFlyToCoord); -- 2.39.2