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:
authorMatt Ebb <matt@mke3.net>2008-02-13 16:26:46 +0300
committerMatt Ebb <matt@mke3.net>2008-02-13 16:26:46 +0300
commit08d54e71eaf7624dec3bb473dfa941faa04b85af (patch)
tree9d5732d9800a002931701704f8cef90199ffe694 /source/blender/src/editaction.c
parent78c3692b2e16c52dd31264c4804067ab792fd971 (diff)
* "Drag Immediately" transform user preference.
It's already supported within transform, was previously known as 'tweak mode' and for some odd reason was a compile time option. This brings it to a user preference (in 'Edit Methods' section). Basically it means that you don't need the extra click at the end to confirm a drag-move transform, if you're already dragged, you can just let go of the mouse rather than needing to click again. It's a lot more comfortable when you're used to using other applications as well as blender, and much more sensible for tablets. This started life as patch #7144 by Ed Britton, but this implementation has been changed considerably.
Diffstat (limited to 'source/blender/src/editaction.c')
-rw-r--r--source/blender/src/editaction.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c
index 9cb2982f422..0737a285ef3 100644
--- a/source/blender/src/editaction.c
+++ b/source/blender/src/editaction.c
@@ -1125,6 +1125,7 @@ void transform_action_keys (int mode, int dummy)
{
void *data;
short datatype;
+ short context = (U.flag & USER_DRAGIMMEDIATE)?CTX_TWEAK:CTX_NONE;
/* determine what type of data we are operating on */
data = get_action_context(&datatype);
@@ -1133,25 +1134,25 @@ void transform_action_keys (int mode, int dummy)
switch (mode) {
case 'g':
{
- initTransform(TFM_TIME_TRANSLATE, CTX_NONE);
+ initTransform(TFM_TIME_TRANSLATE, context);
Transform();
}
break;
case 's':
{
- initTransform(TFM_TIME_SCALE, CTX_NONE);
+ initTransform(TFM_TIME_SCALE, context);
Transform();
}
break;
case 't':
{
- initTransform(TFM_TIME_SLIDE, CTX_NONE);
+ initTransform(TFM_TIME_SLIDE, context);
Transform();
}
break;
case 'e':
{
- initTransform(TFM_TIME_EXTEND, CTX_NONE);
+ initTransform(TFM_TIME_EXTEND, context);
Transform();
}
break;