[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29066] trunk/blender/source/blender/ editors/space_view3d/view3d_edit.c: Fix multitouch zoom erratic behavior in 3D view in vertical dolly mode

Damien Plisson damien.plisson at yahoo.fr
Sat May 29 22:14:58 CEST 2010


Revision: 29066
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29066
Author:   damien78
Date:     2010-05-29 22:14:58 +0200 (Sat, 29 May 2010)

Log Message:
-----------
Fix multitouch zoom erratic behavior in 3D view in vertical dolly mode 

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_edit.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2010-05-29 18:33:32 UTC (rev 29065)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2010-05-29 20:14:58 UTC (rev 29066)
@@ -1157,8 +1157,8 @@
 			else {
 				
 				/* Set y move = x move as MOUSEZOOM uses only x axis to pass magnification value */
-				vod->origy = vod->oldy = event->x;
-				viewzoom_apply(vod, event->x, event->prevx, USER_ZOOM_DOLLY);
+				vod->origy = vod->oldy = vod->origy + event->x - event->prevx;
+				viewzoom_apply(vod, event->prevx, event->prevy, USER_ZOOM_DOLLY);
 			}
 			request_depth_update(CTX_wm_region_view3d(C));
 			





More information about the Bf-blender-cvs mailing list