[Bf-blender-cvs] [bb2300d] master: Fix T44282: Image sampling line disappears after a while

Julian Eisel noreply at git.blender.org
Mon Apr 6 14:12:32 CEST 2015


Commit: bb2300de945f625abf602a2dcce077f32797a226
Author: Julian Eisel
Date:   Mon Apr 6 14:12:05 2015 +0200
Branches: master
https://developer.blender.org/rBbb2300de945f625abf602a2dcce077f32797a226

Fix T44282: Image sampling line disappears after a while

Now even to master

===================================================================

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..5890ed6 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
+		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