Commit: 65da19b0cde2f77ee0b89528c130b5bab606ec52
Author: Bastien Montagne
Date:   Sun Sep 7 14:45:05 2014 +0200
Branches: master
https://developer.blender.org/rB65da19b0cde2f77ee0b89528c130b5bab606ec52

Fix T41740: Different behaviour of custom hotkey

Quick fix, this is actually a demonstration of why we should use modal keymaps!
We can give any event to *start* the op, but then hard-code how to *end* it... 
tsk.

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

M       source/blender/editors/space_graph/graph_ops.c

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

diff --git a/source/blender/editors/space_graph/graph_ops.c 
b/source/blender/editors/space_graph/graph_ops.c
index fbfa935..62b6b59 100644
--- a/source/blender/editors/space_graph/graph_ops.c
+++ b/source/blender/editors/space_graph/graph_ops.c
@@ -167,6 +167,7 @@ static int graphview_cursor_modal(bContext *C, wmOperator 
*op, const wmEvent *ev
                
                case LEFTMOUSE: 
                case RIGHTMOUSE:
+               case MIDDLEMOUSE:
                        /* we check for either mouse-button to end, as checking 
for ACTIONMOUSE (which is used to init 
                         * the modal op) doesn't work for some reason
                         */

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

Reply via email to