WIP: Add driver eyedropper operator button beside the "add input" button
authorJoshua Leung <aligorith@gmail.com>
Mon, 11 Jun 2018 07:43:05 +0000 (19:43 +1200)
committerJoshua Leung <aligorith@gmail.com>
Mon, 11 Jun 2018 07:43:28 +0000 (19:43 +1200)
This doesn't work currently. Needs more investigation why.

source/blender/editors/space_graph/graph_buttons.c

index 5b9df4d..4f3de03 100644 (file)
@@ -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 */