[Bf-blender-cvs] [65da19b] master: Fix T41740: Different behaviour of custom hotkey
Bastien Montagne
noreply at git.blender.org
Sun Sep 7 14:47:25 CEST 2014
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
*/
More information about the Bf-blender-cvs
mailing list