Fix PyConsole: Drag events finished early in modal text selection
This commit is contained in:
parent
7ac0272b77
commit
1d8d4e03f5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue