From bc9d0a07720d62fcca8d2bd79a77ea27ee69db12 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 4 Nov 2010 09:35:25 +0000
Subject: [PATCH] fix the fix

---
 Graphics/Trackball.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Graphics/Trackball.cpp b/Graphics/Trackball.cpp
index f24e76243b..f3ff4c3d13 100644
--- a/Graphics/Trackball.cpp
+++ b/Graphics/Trackball.cpp
@@ -192,8 +192,11 @@ trackball(double q[4], double p1x, double p1y, double p2x, double p2y)
    *  Figure out how much to rotate around that axis.
    */
   vsub(p1,p2,d);
-  t = vlength(d);
- 
+  if (CTX::instance()->trackballHyperbolicSheet)
+    t = vlength(d) / (2.0*TRACKBALLSIZE);
+  else
+    t = vlength(d);
+    
   /*
    * Avoid problems with out-of-control values...
    */
-- 
GitLab