diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-13 11:32:31 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-13 11:32:31 +0400 |
commit | 0c3103ac85ad57309a1f166edd81fc0ae3005049 (patch) | |
tree | 8e2b6a616196a55b24bcebe259f7e1212dd794a1 /source/blender | |
parent | 3a408317192a7662dd5568e6b295174b025cefb4 (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_input.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |