diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-26 07:28:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-26 08:02:01 +0300 |
commit | ee9898e0fafaa7953561817eb064655b857ab5b6 (patch) | |
tree | f7d2930f74229cf08e2d9b6214f8afaf4e3d659a /source/blender/editors | |
parent | eac770a33ad0bc0f00fc82f579fde7c62aa48a87 (diff) |
Drivers Workflow: Change hotkey for "Add Drivers" to Ctrl-D (it was previously just DKEY)
Just using DKEY for this was resulting in too many drivers being accidentally created
by users drawing using Grease Pencil. This change also works better with the following
workflow changes to the driver setup process.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 1a099f07519..3e495615e07 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -6978,12 +6978,12 @@ static int ui_do_button(bContext *C, uiBlock *block, uiBut *but, const wmEvent * } /* handle drivers */ else if ((event->type == DKEY) && - !IS_EVENT_MOD(event, shift, ctrl, oskey) && + !IS_EVENT_MOD(event, shift, oskey) && (event->val == KM_PRESS)) { if (event->alt) ui_but_anim_remove_driver(C); - else + else if (event->ctrl) ui_but_anim_add_driver(C); ED_region_tag_redraw(data->region); |