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:
authorTon Roosendaal <ton@blender.org>2012-12-31 16:26:14 +0400
committerTon Roosendaal <ton@blender.org>2012-12-31 16:26:14 +0400
commitfc6784126bf06dad15a9a84fcb15773f9caa70c8 (patch)
treef6aa6721bbc855cc2c9cac06bbac86e6171150e7 /source/blender/editors/transform
parentbec3b34d257cdfbfb9e12c57dfa672e98d0f587a (diff)
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.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index f861d41c260..39bad76b3d7 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -2721,6 +2721,18 @@ int handleEventShear(TransInfo *t, wmEvent *event)
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 @@ int Shear(TransInfo *t, const int UNUSED(mval[2]))
}
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;