diff options
author | Matt Ebb <matt@mke3.net> | 2008-02-13 16:26:46 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2008-02-13 16:26:46 +0300 |
commit | 08d54e71eaf7624dec3bb473dfa941faa04b85af (patch) | |
tree | 9d5732d9800a002931701704f8cef90199ffe694 /source/blender/src/editipo.c | |
parent | 78c3692b2e16c52dd31264c4804067ab792fd971 (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/editipo.c')
-rw-r--r-- | source/blender/src/editipo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index af762c037d9..dab2a0398b7 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -5316,6 +5316,7 @@ void remake_ipo_transdata (TransInfo *t) void transform_ipo (int mode) { short tmode; + short context = (U.flag & USER_DRAGIMMEDIATE)?CTX_TWEAK:CTX_NONE; /* data-validation */ if (G.sipo->ipo && G.sipo->ipo->id.lib) return; @@ -5341,12 +5342,12 @@ void transform_ipo (int mode) get_status_editipo(); if (totipo_vertsel) { /* we're probably in editmode, so only selected verts - transform system */ - initTransform(tmode, CTX_NONE); + initTransform(tmode, context); Transform(); } else if (totipo_edit==0 && totipo_sel!=0) { /* we're not in editmode, so entire curves get moved - transform system*/ - initTransform(tmode, CTX_NONE); + initTransform(tmode, context); Transform(); } else { |