Merged changes in the trunk up to revision 52690.
[blender.git] / source / blender / editors / transform / transform.c
index 6145fec7e510f1e35b3379a663b894215e1d3fa1..f93cfa251201d97ffb356c21f23501f729fcbf56 100644 (file)
@@ -836,9 +836,6 @@ int transformEvent(TransInfo *t, wmEvent *event)
        t->redraw |= handleMouseInput(t, &t->mouse, event);
 
        if (event->type == MOUSEMOVE) {
-               if (t->modifiers & MOD_CONSTRAINT_SELECT)
-                       t->con.mode |= CON_SELECT;
-
                copy_v2_v2_int(t->mval, event->mval);
 
                // t->redraw |= TREDRAW_SOFT; /* Use this for soft redraw. Might cause flicker in object mode */
@@ -2040,6 +2037,9 @@ void transformApply(bContext *C, TransInfo *t)
        t->context = C;
 
        if ((t->redraw & TREDRAW_HARD) || (t->draw_handle_apply == NULL && (t->redraw & TREDRAW_SOFT))) {
+               if (t->modifiers & MOD_CONSTRAINT_SELECT)
+                       t->con.mode |= CON_SELECT;
+
                selectConstraint(t);
                if (t->transform) {
                        t->transform(t, t->mval);  // calls recalcData()