diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-04-23 12:24:55 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-04-23 12:24:55 +0300 |
commit | c9ed39925a51fc421a734027c2ef386157392f3b (patch) | |
tree | b337a5f63ead992286bc512b2109fbfb1c03d2fa /source | |
parent | 532f4366a5713f4796745873aad7921a344ae923 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_action.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 */ |