From ee9898e0fafaa7953561817eb064655b857ab5b6 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 26 Mar 2016 17:28:02 +1300 Subject: [PATCH] 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. --- source/blender/editors/interface/interface_handlers.c | 4 ++-- 1 file 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);