[Bf-blender-cvs] [6509155] gooseberry: Draw modifiers as inactive when channel modifiers are deactivated.

Antony Riakiotakis noreply at git.blender.org
Wed Apr 15 17:39:46 CEST 2015


Commit: 650915595c424e570879ac43eb6b74678e389c28
Author: Antony Riakiotakis
Date:   Wed Apr 15 17:39:39 2015 +0200
Branches: gooseberry
https://developer.blender.org/rB650915595c424e570879ac43eb6b74678e389c28

Draw modifiers as inactive when channel modifiers are deactivated.

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

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 3682a07..02542ee 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -890,6 +890,7 @@ static void graph_panel_modifiers(const bContext *C, Panel *pa)
 	FModifier *fcm;
 	uiLayout *col, *row;
 	uiBlock *block;
+	bool active;
 	
 	if (!graph_panel_context(C, &ale, &fcu))
 		return;
@@ -914,9 +915,11 @@ static void graph_panel_modifiers(const bContext *C, Panel *pa)
 		uiItemO(row, "", ICON_PASTEDOWN, "GRAPH_OT_fmodifier_paste");
 	}
 	
+	active = !(fcu->flag & FCURVE_MOD_OFF);
 	/* draw each modifier */
 	for (fcm = fcu->modifiers.first; fcm; fcm = fcm->next) {
 		col = uiLayoutColumn(pa->layout, true);
+		uiLayoutSetActive(col, active);
 		
 		ANIM_uiTemplate_fmodifier_draw(col, ale->id, &fcu->modifiers, fcm);
 	}




More information about the Bf-blender-cvs mailing list