Fix #33500: when transforming, tapping shift twice and holding did not enable
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 13 Dec 2012 07:32:31 +0000 (07:32 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 13 Dec 2012 07:32:31 +0000 (07:32 +0000)
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

index 7e05fdae364ec87245cb18ccd3d3a0a02287db6e..88ed002af89d4e6664b70d9ec56fea4b8afb5975 100644 (file)
@@ -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;
        }