[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53458] trunk/blender/source/blender/ editors/transform/transform.c: Usability todo:
Ton Roosendaal
ton at blender.org
Mon Dec 31 13:26:17 CET 2012
Revision: 53458
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53458
Author: ton
Date: 2012-12-31 12:26:14 +0000 (Mon, 31 Dec 2012)
Log Message:
-----------
Usability todo:
Editmode "Shear" didn't communicate well.
- Added X and Y shortcut to set shear axis
- Added print in header to denote that.
It will still switch with MMB press too.
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-12-31 12:13:30 UTC (rev 53457)
+++ trunk/blender/source/blender/editors/transform/transform.c 2012-12-31 12:26:14 UTC (rev 53458)
@@ -2721,6 +2721,18 @@
status = 1;
}
+ else if (event->type == XKEY && event->val == KM_PRESS) {
+ initMouseInputMode(t, &t->mouse, INPUT_HORIZONTAL_ABSOLUTE);
+ t->customData = NULL;
+
+ status = 1;
+ }
+ else if (event->type == YKEY && event->val == KM_PRESS) {
+ initMouseInputMode(t, &t->mouse, INPUT_VERTICAL_ABSOLUTE);
+ t->customData = (void *)1;
+
+ status = 1;
+ }
return status;
}
@@ -2754,7 +2766,7 @@
}
else {
/* default header print */
- sprintf(str, "Shear: %.3f %s", value, t->proptext);
+ sprintf(str, "Shear: %.3f %s (Press X or Y to set shear axis)", value, t->proptext);
}
t->values[0] = value;
More information about the Bf-blender-cvs
mailing list