[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52958] trunk/blender/source/blender/ editors/transform/transform_input.c: Fix #33500: when transforming, tapping shift twice and holding did not enable

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Dec 13 08:32:32 CET 2012


Revision: 52958
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52958
Author:   blendix
Date:     2012-12-13 07:32:31 +0000 (Thu, 13 Dec 2012)
Log Message:
-----------
Fix #33500: when transforming, tapping shift twice and holding did not enable
precision mode. Not really the intended way to use this but it revealed a bug
in the event handling here.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform_input.c

Modified: trunk/blender/source/blender/editors/transform/transform_input.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_input.c	2012-12-13 06:36:02 UTC (rev 52957)
+++ trunk/blender/source/blender/editors/transform/transform_input.c	2012-12-13 07:32:31 UTC (rev 52958)
@@ -397,12 +397,13 @@
 				 * store the mouse position where the normal movement ended */
 				copy_v2_v2_int(mi->precision_mval, event->mval);
 				mi->precision = 1;
+				redraw = TREDRAW_HARD;
 			}
-			else {
+			else if(event->val == KM_RELEASE) {
 				t->modifiers &= ~MOD_PRECISION;
 				mi->precision = 0;
+				redraw = TREDRAW_HARD;
 			}
-			redraw = TREDRAW_HARD;
 			break;
 	}
 




More information about the Bf-blender-cvs mailing list