diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-24 14:35:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-24 14:35:04 +0400 |
commit | f16d2b7eaac2f9225075d85e3d570e437407d513 (patch) | |
tree | a8ca1ee5957ce793e40c2ca8381549778ee1d359 /source/blender/editors/animation/anim_ops.c | |
parent | 71027be7f60bf55b8961c06f33a579cdef0f5cd8 (diff) |
fix for middle mouse up events not working with modal keymaps (used for fly mode).
With mouse events event->val started as 0/1 for press/release but later the tweak function made LMB and RMB zero value into KM_RELEASE, somehow MMB didnt get used by the tweak function so was left at 0 and the modal keymap function failed when comparing MMB Mouse ups.
now initialize event->val as KM_PRESS/KM_RELEASE
Diffstat (limited to 'source/blender/editors/animation/anim_ops.c')
-rw-r--r-- | source/blender/editors/animation/anim_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index 80077a6d4b3..40c5b8893a1 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -193,7 +193,7 @@ static int change_frame_modal(bContext *C, wmOperator *op, wmEvent *event) /* 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 */ - if (event->val==0) { + if (event->val==KM_RELEASE) { change_frame_exit(C, op); return OPERATOR_FINISHED; } |