GPencil: Cancel w/ RMB click

RMB is used to cancel almost everywhere in blender, not confirm.
This commit is contained in:
Campbell Barton 2018-12-18 13:03:34 +11:00
parent 7eaa0b1797
commit 08f15433ba
1 changed files with 1 additions and 10 deletions

View File

@ -1381,16 +1381,7 @@ static int gpencil_primitive_modal(bContext *C, wmOperator *op, const wmEvent *e
/* done! */
return OPERATOR_FINISHED;
}
case RIGHTMOUSE:
{
if (tgpi->flag == IN_CURVE_EDIT || (tgpi->flag == IN_PROGRESS && tgpi->tot_stored_edges > 0)) {
tgpi->flag = IDLE;
gpencil_primitive_interaction_end(C, op, win, tgpi);
/* done! */
return OPERATOR_FINISHED;
}
ATTR_FALLTHROUGH;
}
case RIGHTMOUSE: /* cancel */
case ESCKEY:
{
/* return to normal cursor and header status */