diff --git a/wrap/gui/trackmode.cpp b/wrap/gui/trackmode.cpp index d21a6259..c5c7da63 100644 --- a/wrap/gui/trackmode.cpp +++ b/wrap/gui/trackmode.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.28 2008/02/24 18:05:08 ponchio +Should work as before. I didn't test cylinder and other exotic modes. + Revision 1.27 2008/02/24 14:37:00 ponchio Restored trackball functionality. Not very much tested, and code will need some cleanup. @@ -299,7 +302,8 @@ void CylinderMode::Apply (Trackball * tb, Point3f new_point) if(snap>0.0){ angle = ((angle<0)?-1:1)* floor((((angle<0)?-angle:angle)/snap)+0.5)*snap; } - tb->track.rot = tb->last_track.rot * Quaternionf (angle,axis.Direction()); +// tb->track.rot = tb->last_track.rot * Quaternionf (angle,axis.Direction()); + tb->track.rot = Quaternionf (-angle,axis.Direction()) * tb->last_track.rot; } void CylinderMode::Draw(Trackball * tb){