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:27:42 +0300
committerJoshua Leung <aligorith@gmail.com>2018-06-11 10:27:53 +0300
commit7c10ed7e7247d50c0132e0b39b074bd8910afc86 (patch)
tree64549a6c8d1d9d3619d5b46cde87bd98d75d285a /source/blender/editors/animation/drivers.c
parent3122366b28d01707f07479e92a43f3173a5af8d1 (diff)
Cleanup: Remove the "all" parameter from "ANIM_OT_driver_button_edit"
This won't ever be used for this operator, as the "edit" operator should only ever be used for dealign with a single driver - the one under the cursor.
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index 6b5306dc0c7..294cff43c56 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -1035,14 +1035,10 @@ static int edit_driver_button_exec(bContext *C, wmOperator *op)
PointerRNA ptr = {{NULL}};
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", true, op->reports);
}
@@ -1063,9 +1059,6 @@ void ANIM_OT_driver_button_edit(wmOperatorType *ot)
/* flags */
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
-
- /* properties */
- //RNA_def_boolean(ot->srna, "all", 1, "All", "Edit drivers for all elements of the array");
}
/* Copy Driver Button Operator ------------------------ */