From c685c19df9513a3263e78b417a87fc102840437e Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 22 May 2018 16:18:09 +0200 Subject: Drivers UI (Part of T55145): Add "Show Drivers Editor" entry to RMB menus This commit adds an operator, "Show Drivers Editor", to the RMB menu when clicking on properties. As per T54653, this will open a new Graph Editor instance in a new/separate window (much like how the User Preferences show up in a popup window now), and will configure all the relevant panels so that you can see and edit the driver settings immediately without doing a lot of the view configuration steps that were previously needed. When doing so on a property that is driven, the driver/fcurve for that property will be made active in the editor, ready for you to start editing its settings without having to hunt it down again first. --- source/blender/editors/interface/interface_handlers.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/interface/interface_handlers.c') diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 2f91fb86b36..6332d006dbb 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -6774,6 +6774,9 @@ static bool ui_but_menu(bContext *C, uiBut *but) uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Paste Driver"), ICON_NONE, "ANIM_OT_paste_driver_button"); } + + uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Open Drivers Editor"), + ICON_DRIVER, "SCREEN_OT_drivers_editor_show"); } else if (but->flag & (UI_BUT_ANIMATED_KEY | UI_BUT_ANIMATED)) { /* pass */ @@ -6796,6 +6799,9 @@ static bool ui_but_menu(bContext *C, uiBut *but) uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Paste Driver"), ICON_NONE, "ANIM_OT_paste_driver_button"); } + + uiItemO(layout, CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Open Drivers Editor"), + ICON_NONE, "SCREEN_OT_drivers_editor_show"); } /* Keying Sets */ -- cgit v1.2.3