From 0c3103ac85ad57309a1f166edd81fc0ae3005049 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 13 Dec 2012 07:32:31 +0000 Subject: 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. --- source/blender/editors/transform/transform_input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/editors/transform/transform_input.c b/source/blender/editors/transform/transform_input.c index 7e05fdae364..88ed002af89 100644 --- a/source/blender/editors/transform/transform_input.c +++ b/source/blender/editors/transform/transform_input.c @@ -397,12 +397,13 @@ int handleMouseInput(TransInfo *t, MouseInput *mi, wmEvent *event) * 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; } -- cgit v1.2.3