[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45740] trunk/blender/source/blender/ editors/transform/transform.c: Fix redo not working correct after keyboard input for shear, shrink/ flatten,
Brecht Van Lommel
brechtvanlommel at pandora.be
Wed Apr 18 10:26:59 CEST 2012
Revision: 45740
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45740
Author: blendix
Date: 2012-04-18 08:26:58 +0000 (Wed, 18 Apr 2012)
Log Message:
-----------
Fix redo not working correct after keyboard input for shear, shrink/flatten,
push/pull, edge slide tools. Patch by Nicholas Rishel.
Modified Paths:
--------------
trunk/blender/source/blender/editors/transform/transform.c
Modified: trunk/blender/source/blender/editors/transform/transform.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform.c 2012-04-18 08:11:08 UTC (rev 45739)
+++ trunk/blender/source/blender/editors/transform/transform.c 2012-04-18 08:26:58 UTC (rev 45740)
@@ -2516,6 +2516,8 @@
sprintf(str, "Shear: %.3f %s", value, t->proptext);
}
+ t->values[0] = value;
+
unit_m3(smat);
// Custom data signals shear direction
@@ -3616,6 +3618,7 @@
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 @@
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 @@
CLAMP(final, -1.0f, 1.0f);
+ t->values[0] = final;
+
/*do stuff here*/
if (t->customData)
doEdgeSlide(t, final);
More information about the Bf-blender-cvs
mailing list