From 05e7802a97360a49d59ddc6647d7169457ff9745 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 11 Jun 2018 19:43:05 +1200 Subject: WIP: Add driver eyedropper operator button beside the "add input" button This doesn't work currently. Needs more investigation why. --- source/blender/editors/space_graph/graph_buttons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/space_graph') diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c index 5b9df4de98e..4f3de0398a2 100644 --- a/source/blender/editors/space_graph/graph_buttons.c +++ b/source/blender/editors/space_graph/graph_buttons.c @@ -858,7 +858,8 @@ static void graph_draw_driver_settings_panel(uiLayout *layout, ID *id, FCurve *f UI_but_func_set(but, driver_add_var_cb, driver, NULL); /* add driver variable - add using eyedropper */ - /* TODO... */ + /* XXX: will this operator work like this? */ + uiItemO(row, "", ICON_EYEDROPPER, "UI_OT_eyedropper_driver"); } else { /* add driver variable */ -- cgit v1.2.3