Make Shift+LMB on transform manipulator configurable
authorJulian Eisel <eiseljulian@gmail.com>
Fri, 16 Dec 2016 01:35:36 +0000 (02:35 +0100)
committerJulian Eisel <eiseljulian@gmail.com>
Fri, 16 Dec 2016 01:49:53 +0000 (02:49 +0100)
commit4df75e536a0847cf5e5f567f92f1391f1f72c211
tree675d07ca71955c9bb9f9bd0e8da965d3a91eb6bf
parent524ab96245211bb722b82e197ac75bba6bd10e69
Make Shift+LMB on transform manipulator configurable

It's now possible to change the shortcut that enables planar transformation with the transform manipulators (shift+LMB on axis).

This actually fixes the workaround added in rB20681f49801fd. Thing is that we needed to allow using the manipulators, even if a modifier key is held so things like snapping work right away. That's why normal LMB behavior uses KM_ANY. However, event handling would always execute the KM_ANY keymap handler because it's iterated over first. Simply solved this by registering the KM_SHIFT keymap item first, so it has priority over the KM_ANY one.
source/blender/editors/physics/physics_ops.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_ops.c
source/blender/editors/transform/transform_manipulator.c