[Bf-blender-cvs] [7c10ed7e724] blender2.8: Cleanup: Remove the "all" parameter from "ANIM_OT_driver_button_edit"

Joshua Leung noreply at git.blender.org
Mon Jun 11 09:27:59 CEST 2018


Commit: 7c10ed7e7247d50c0132e0b39b074bd8910afc86
Author: Joshua Leung
Date:   Mon Jun 11 19:27:42 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB7c10ed7e7247d50c0132e0b39b074bd8910afc86

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.

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

M	source/blender/editors/animation/drivers.c

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

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



More information about the Bf-blender-cvs mailing list