Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-06-11 10:43:05 +0300
committerJoshua Leung <aligorith@gmail.com>2018-06-11 10:43:28 +0300
commit05e7802a97360a49d59ddc6647d7169457ff9745 (patch)
tree8d29a76cdea23a103dba00a64aae42256f13ddd0 /source/blender/editors/space_graph
parent21c24c0423b4c82eb3baa18bd7474acc2a5a81bf (diff)
WIP: Add driver eyedropper operator button beside the "add input" button
This doesn't work currently. Needs more investigation why.
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c3
1 files changed, 2 insertions, 1 deletions
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 */