diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-25 13:54:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-25 13:55:22 +0300 |
commit | b11a1d5da26fa2906955e54254672b1af075d0dc (patch) | |
tree | 0fcb6f0004708131f90a4522ed3807704205e672 /source/blender/editors/animation | |
parent | e9908134e87e4c69698d73ff144f3f8771a51be5 (diff) |
UI: support for a popup panel which stays open
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/drivers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c index 41a72e7b5fd..2c28ecfac5d 100644 --- a/source/blender/editors/animation/drivers.c +++ b/source/blender/editors/animation/drivers.c @@ -976,17 +976,17 @@ static int edit_driver_button_exec(bContext *C, wmOperator *op) PropertyRNA *prop = NULL; int index; const bool all = 0; // RNA_boolean_get(op->ptr, "all"); - + /* try to find driver using property retrieved from UI */ UI_context_active_but_prop_get(C, &ptr, &prop, &index); - + if (all) index = -1; - + if (ptr.id.data && ptr.data && prop) { - UI_popover_panel_invoke(C, SPACE_IPO, RGN_TYPE_UI, "GRAPH_PT_drivers_popover", op->reports); + UI_popover_panel_invoke(C, SPACE_IPO, RGN_TYPE_UI, "GRAPH_PT_drivers_popover", true, op->reports); } - + return OPERATOR_INTERFACE; } |