]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Make sure that 3D view rotates around origin.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jan 2010 10:06:28 +0000 (10:06 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jan 2010 10:06:28 +0000 (10:06 +0000)
EVE/macros/visscan_init.C

index fbd787582525e50db7b916161d1607741ae3615b..8ddabbdcd7b0ef1ce769e91e75eafc5d4e5c6d8c 100644 (file)
@@ -233,6 +233,11 @@ void visscan_init(const TString& cdburi = "",
   gEve->EditElement(g_trkcnt);
 
   gEve->Redraw3D(kTRUE);
+
+  // Assure 3D view rotates around the origin.
+  gSystem->ProcessEvents();
+  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->CurrentCamera().SetCenterVec(0,0,0);
+  AliEveMultiView::Instance()->Get3DView()->GetGLViewer()->RequestDraw();
 }
 
 /******************************************************************************/