From 088be7eb2f650f7849e3af33cbea76f7b3af0822 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 16 Nov 2018 08:28:58 +1100 Subject: Keymaps: replace select / action mouse system For Blender builtin configurations the option to choose the select mouse remains and is now also in the splash screen. It works by changing the keymap dynamically in the script, rather than using special events. The system of automatic switching of events was not flexible enough to deal with side effects that require further keymap changes, so it is now under more manual control in the script. This breaks compatibility for some scripts and exported key configurations. These can be fixed by replacing SELECTMOUSE, ACTIONMOUSE, EVT_TWEAK_S and EVT_TWEAK_A with appropriate LEFTMOUSE, RIGHTMOUSE, EVT_TWEAK_L and EVT_TWEAK_R events. Other than that, there should be no functional changes. --- source/blender/editors/animation/anim_ops.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index f6fdd539983..8914cf9492c 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -231,9 +231,7 @@ static int change_frame_modal(bContext *C, wmOperator *op, const wmEvent *event) 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 - */ + /* We check for either mouse-button to end, to work with all user keymaps. */ if (event->val == KM_RELEASE) ret = OPERATOR_FINISHED; break; -- cgit v1.2.3