diff options
author | Joshua Leung <aligorith@gmail.com> | 2019-01-31 05:42:59 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2019-02-03 14:41:14 +0300 |
commit | 65340ad73f4c70936a5132bc5d8f911408cfb826 (patch) | |
tree | cf11e4039221c3bd8ebfdf5b5b0a2772de34ffdb /source/blender/makesrna/intern/rna_action.c | |
parent | 744f6339865fa8ed00b2e98aa5812b94d67a8604 (diff) |
Fix T60753: Graph Editor showing cache curves regardless of filters
This commit adds a datablock filtering option for cache files channels,
so that a shot with lots of these in addition to standard animation
(e.g. the Spring production files) don't become bogged down by these.
Furthermore, these channels also respect the "Only Selected" toggle too now.
Diffstat (limited to 'source/blender/makesrna/intern/rna_action.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_action.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_action.c b/source/blender/makesrna/intern/rna_action.c index 225045ed286..47a5401e25a 100644 --- a/source/blender/makesrna/intern/rna_action.c +++ b/source/blender/makesrna/intern/rna_action.c @@ -483,6 +483,12 @@ static void rna_def_dopesheet(BlenderRNA *brna) RNA_def_property_ui_icon(prop, ICON_OUTLINER_OB_SPEAKER, 0); RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL); + prop = RNA_def_property(srna, "show_cache_files", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag2", ADS_FILTER_NOCACHEFILES); + RNA_def_property_ui_text(prop, "Display Cache Files", "Include visualization of cache file related animation data"); + RNA_def_property_ui_icon(prop, ICON_FILE, 0); + RNA_def_property_update(prop, NC_ANIMATION | ND_ANIMCHAN | NA_EDITED, NULL); + prop = RNA_def_property(srna, "show_gpencil", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOGPENCIL); RNA_def_property_ui_text(prop, "Display Grease Pencil", "Include visualization of Grease Pencil related animation data and frames"); |