[Bf-blender-cvs] [3e0d5da] wiggly-widgets: Fix T44282: Image sampling line disappears after a while
Julian Eisel
noreply at git.blender.org
Mon Apr 6 13:56:53 CEST 2015
Commit: 3e0d5da5eb09571506e4ace3e1dc69cc47bd5fa5
Author: Julian Eisel
Date: Mon Apr 6 13:56:23 2015 +0200
Branches: wiggly-widgets
https://developer.blender.org/rB3e0d5da5eb09571506e4ace3e1dc69cc47bd5fa5
Fix T44282: Image sampling line disappears after a while
===================================================================
M source/blender/editors/space_image/image_ops.c
===================================================================
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 976c767..9b35162 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -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
- image_sample_exit(C, op);
- return OPERATOR_CANCELLED;
+ if (event->val == KM_RELEASE) {
+ image_sample_exit(C, op);
+ return OPERATOR_CANCELLED;
+ }
+ break;
case MOUSEMOVE:
image_sample_apply(C, op, event);
break;
More information about the Bf-blender-cvs
mailing list