From: ouv Date: Fri, 26 Jun 2009 13:31:35 +0000 (+0000) Subject: Minor fix X-Git-Tag: V5_1_2rc4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6878546220c0ad2d3bd38703b8b76f21cd51b8ff;p=modules%2Fvisu.git Minor fix --- 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);