Merged changes in the trunk up to revision 43881.
[blender.git] / source / blender / editors / transform / transform.c
index 9d368476f03ebb9d8cdd21d8fffa7ee78fb13eb5..15bd14ce94c8de4a7db21048366bc8ce46ab9e0c 100644 (file)
@@ -571,9 +571,6 @@ int transformEvent(TransInfo *t, wmEvent *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 */
@@ -1769,6 +1766,9 @@ void transformApply(bContext *C, TransInfo *t)
 
        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()