Keymaps: replace select / action mouse system
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 15 Nov 2018 21:28:58 +0000 (08:28 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 15 Nov 2018 21:31:00 +0000 (08:31 +1100)
commit088be7eb2f650f7849e3af33cbea76f7b3af0822
treed0248368b79c2787dc87b4ba57cd3d836e36e0f4
parent8ecc51e87fd0e3e9bb13622456d03d09926eab47
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.
20 files changed:
release/scripts/modules/bpy_extras/keyconfig_utils.py
release/scripts/presets/keyconfig/3dsmax.py
release/scripts/presets/keyconfig/blender.py
release/scripts/presets/keyconfig/blender_27x.py
release/scripts/presets/keyconfig/keymap_data/blender_default.py
release/scripts/presets/keyconfig/maya.py
release/scripts/startup/bl_operators/wm.py
release/scripts/startup/bl_ui/space_toolsystem_common.py
release/scripts/startup/bl_ui/space_userpref.py
release/scripts/templates_py/ui_tool_simple.py
source/blender/blenkernel/BKE_blender_version.h
source/blender/blenloader/CMakeLists.txt
source/blender/blenloader/intern/versioning_userdef.c
source/blender/editors/animation/anim_ops.c
source/blender/editors/space_graph/graph_ops.c
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/makesrna/intern/rna_wm.c
source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/wm_event_types.h