Fix T44282: Image sampling line disappears after a while

Now even to master
This commit is contained in:
Julian Eisel 2015-04-06 14:12:05 +02:00
parent 883663a0ad
commit bb2300de94
Notes: blender-bot 2023-02-14 09:16:45 +01:00
Referenced by issue #44282, Image sampling line disappears after a while
1 changed files with 3 additions and 0 deletions

View File

@ -2609,8 +2609,11 @@ static int image_sample_modal(bContext *C, wmOperator *op, const wmEvent *event)
switch (event->type) {
case LEFTMOUSE:
case RIGHTMOUSE: // XXX hardcoded
if (event->val == KM_RELEASE) {
image_sample_exit(C, op);
return OPERATOR_CANCELLED;
}
break;
case MOUSEMOVE:
image_sample_apply(C, op, event);
break;