diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-03-19 06:26:31 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-03-19 06:26:31 +0300 |
commit | 5e7b1bde8d35676bbb5a88f62821ed6689d0761b (patch) | |
tree | 3a4ba400440f467b1921480a25f58719a1919135 /source | |
parent | cd9e6253c3023d23de331b00b23e3dd2054113f2 (diff) |
Hack to make people stop bugging me.
Working around a problem in a work around for holes in the operator API and event system.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 9cd3ee3ba99..8ac7d2aeab3 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1456,17 +1456,21 @@ int initTransform(bContext *C, TransInfo *t, wmOperator *op, wmEvent *event, int t->launch_event = event ? event->type : -1; - if (t->launch_event == EVT_TWEAK_R) + if (U.flag & USER_DRAGIMMEDIATE) { - t->launch_event = RIGHTMOUSE; - } - else if (t->launch_event == EVT_TWEAK_L) - { - t->launch_event = LEFTMOUSE; + if (t->launch_event == EVT_TWEAK_R) + { + t->launch_event = RIGHTMOUSE; + } + else if (t->launch_event == EVT_TWEAK_L) + { + t->launch_event = LEFTMOUSE; + } } + // XXX Remove this when wm_operator_call_internal doesn't use window->eventstate (which can have type = 0) // For manipulator only, so assume LEFTMOUSE - else if (t->launch_event == 0) + if (t->launch_event == 0) { t->launch_event = LEFTMOUSE; } |