From b11a1d5da26fa2906955e54254672b1af075d0dc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 25 May 2018 12:54:24 +0200 Subject: UI: support for a popup panel which stays open --- source/blender/editors/animation/drivers.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/animation') 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; } -- cgit v1.2.3