Commit: 05e7802a97360a49d59ddc6647d7169457ff9745
Author: Joshua Leung
Date:   Mon Jun 11 19:43:05 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB05e7802a97360a49d59ddc6647d7169457ff9745

WIP: Add driver eyedropper operator button beside the "add input" button

This doesn't work currently. Needs more investigation why.

===================================================================

M       source/blender/editors/space_graph/graph_buttons.c

===================================================================

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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to