[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25422] trunk/blender/source/blender/ editors/space_view3d/view3d_edit.c: ZanQdo recons the continuous zoom from last commit was too slow, cant test well on my laptop but hope this is better.

Campbell Barton ideasman42 at gmail.com
Thu Dec 17 00:31:01 CET 2009


Revision: 25422
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25422
Author:   campbellbarton
Date:     2009-12-17 00:30:59 +0100 (Thu, 17 Dec 2009)

Log Message:
-----------
ZanQdo recons the continuous zoom from last commit was too slow, cant test well on my laptop but hope this is better.

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	2009-12-16 23:05:59 UTC (rev 25421)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2009-12-16 23:30:59 UTC (rev 25422)
@@ -902,7 +902,7 @@
 		float time_step= (float)(time - vod->timer_lastdraw);
 
 		// oldstyle zoom
-		zfac = 1.0f + (((float)(vod->origx - x + vod->origy - y)/1000.0) * (time_step * 10.0f));
+		zfac = 1.0f + (((float)(vod->origx - x + vod->origy - y)/20.0) * time_step);
 		vod->timer_lastdraw= time;
 	}
 	else if(U.viewzoom==USER_ZOOM_SCALE) {





More information about the Bf-blender-cvs mailing list