diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-06-11 11:18:51 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-06-11 11:18:51 +0300 |
commit | 1d8d4e03f51e22cd309dbb3297b13711d84491e8 (patch) | |
tree | 0749af7cabdfe75d70f758691e2a0cc702f9c4bf /source/blender | |
parent | 7ac0272b776a18cbf4de2aa447cadd50909606c2 (diff) |
Fix PyConsole: Drag events finished early in modal text selection
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_console/console_ops.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_console/console_ops.c b/source/blender/editors/space_console/console_ops.c index 4867d42030c..32cf5ea2055 100644 --- a/source/blender/editors/space_console/console_ops.c +++ b/source/blender/editors/space_console/console_ops.c @@ -1140,8 +1140,11 @@ static int console_modal_select(bContext *C, wmOperator *op, const wmEvent *even case LEFTMOUSE: case MIDDLEMOUSE: case RIGHTMOUSE: - console_cursor_set_exit(C, op); - return OPERATOR_FINISHED; + if (event->val == KM_RELEASE) { + console_cursor_set_exit(C, op); + return OPERATOR_FINISHED; + } + break; case MOUSEMOVE: console_modal_select_apply(C, op, event); break; |