]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor fix V5_1_2rc4
authorouv <ouv@opencascade.com>
Fri, 26 Jun 2009 13:31:35 +0000 (13:31 +0000)
committerouv <ouv@opencascade.com>
Fri, 26 Jun 2009 13:31:35 +0000 (13:31 +0000)
src/OBJECT/VISU_Actor.cxx

index ea90a56d4fa0b7154c1a72b78db827bece39a855..1c29b5d7cadcfbf53387f284530d8fa82a000d25 100644 (file)
@@ -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);