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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to