Fix redo not working correct after keyboard input for shear, shrink/flatten,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 18 Apr 2012 08:26:58 +0000 (08:26 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 18 Apr 2012 08:26:58 +0000 (08:26 +0000)
push/pull, edge slide tools. Patch by Nicholas Rishel.

source/blender/editors/transform/transform.c

index 0a85c523c93d0ffed3908f6280da62c26feeea94..bb1800a79cf0c1ef6c293db45a16f83e51577b7c 100644 (file)
@@ -2516,6 +2516,8 @@ int Shear(TransInfo *t, const int UNUSED(mval[2]))
                sprintf(str, "Shear: %.3f %s", value, t->proptext);
        }
        
+       t->values[0] = value;
+
        unit_m3(smat);
        
        // Custom data signals shear direction
@@ -3616,6 +3618,7 @@ int ShrinkFatten(TransInfo *t, const int UNUSED(mval[2]))
                sprintf(str, "Shrink/Fatten: %.4f %s", distance, t->proptext);
        }
 
+       t->values[0] = distance;
 
        for (i = 0 ; i < t->total; i++, td++) {
                if (td->flag & TD_NOACTION)
@@ -3821,6 +3824,8 @@ int PushPull(TransInfo *t, const int UNUSED(mval[2]))
                sprintf(str, "Push/Pull: %.4f%s %s", distance, t->con.text, t->proptext);
        }
 
+       t->values[0] = distance;
+
        if (t->con.applyRot && t->con.mode & CON_APPLY) {
                t->con.applyRot(t, NULL, axis, NULL);
        }
@@ -4923,6 +4928,8 @@ int EdgeSlide(TransInfo *t, const int UNUSED(mval[2]))
 
        CLAMP(final, -1.0f, 1.0f);
 
+       t->values[0] = final;
+
        /*do stuff here*/
        if (t->customData)
                doEdgeSlide(t, final);