Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-18 12:26:58 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-18 12:26:58 +0400
commit6d346724d3171061e71adddeecea737f138bf48e (patch)
treeaf35bd2c81bd36d9bed25aa1ebfdf2d13b29849b /source/blender/editors/transform
parentc776418b247f9a34dec22c15684bcece5db568b7 (diff)
Fix redo not working correct after keyboard input for shear, shrink/flatten,
push/pull, edge slide tools. Patch by Nicholas Rishel.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 0a85c523c93..bb1800a79cf 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -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);