From c9ed39925a51fc421a734027c2ef386157392f3b Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 23 Apr 2019 11:24:55 +0200 Subject: Fix T63649: Action group expand setting for graph editor missing I did not rename the other property to `show_expanded_dopesheet` yet (as suggested in the report), because: * Would break compatibility (haven't found any addon using it though). * I'm not sure if this really only affects the dopesheet. --- source/blender/makesrna/intern/rna_action.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/makesrna/intern/rna_action.c b/source/blender/makesrna/intern/rna_action.c index c9c831e6700..bb3585df24e 100644 --- a/source/blender/makesrna/intern/rna_action.c +++ b/source/blender/makesrna/intern/rna_action.c @@ -617,7 +617,14 @@ static void rna_def_action_group(BlenderRNA *brna) prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); RNA_def_property_boolean_sdna(prop, NULL, "flag", AGRP_EXPANDED); - RNA_def_property_ui_text(prop, "Expanded", "Action group is expanded"); + RNA_def_property_ui_text(prop, "Expanded", "Action group is expanded except in graph editor"); + RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL); + + prop = RNA_def_property(srna, "show_expanded_graph", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", AGRP_EXPANDED_G); + RNA_def_property_ui_text( + prop, "Expanded in Graph Editor", "Action group is expanded in graph editor"); RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL); /* color set */ -- cgit v1.2.3