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.
This commit is contained in:
Jacques Lucke 2019-04-23 11:24:55 +02:00
parent 532f4366a5
commit c9ed39925a
Notes: blender-bot 2023-12-08 16:39:08 +01:00
Referenced by issue #63649, action.groups.show_expanded datablock is broken
1 changed files with 8 additions and 1 deletions

View File

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