[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50914] trunk/blender/source/blender/ editors/interface/view2d_ops.c: correct debug/ test assignment being left in the UI_view2d_smooth_view() so it always recalculated.

Campbell Barton ideasman42 at gmail.com
Wed Sep 26 22:14:31 CEST 2012


Revision: 50914
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50914
Author:   campbellbarton
Date:     2012-09-26 20:14:30 +0000 (Wed, 26 Sep 2012)
Log Message:
-----------
correct debug/test assignment being left in the UI_view2d_smooth_view() so it always recalculated.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/interface/view2d_ops.c

Modified: trunk/blender/source/blender/editors/interface/view2d_ops.c
===================================================================
--- trunk/blender/source/blender/editors/interface/view2d_ops.c	2012-09-26 20:05:38 UTC (rev 50913)
+++ trunk/blender/source/blender/editors/interface/view2d_ops.c	2012-09-26 20:14:30 UTC (rev 50914)
@@ -1273,11 +1273,10 @@
 	}
 
 	if (C && U.smooth_viewtx && fac > FLT_EPSILON) {
-		int changed = 0; /* zero means no difference */
+		int changed = FALSE;
 
 		if (BLI_rctf_compare(&sms.new_cur, &v2d->cur, FLT_EPSILON) == FALSE)
-			changed = 1;
-		changed=1;
+			changed = TRUE;
 
 		/* The new view is different from the old one
 		 * so animate the view */




More information about the Bf-blender-cvs mailing list