Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-04-19 19:51:42 +0300
committerJoshua Leung <aligorith@gmail.com>2018-04-20 19:54:41 +0300
commite3ebe5c8c3b24baa6fda8c28cbffa38f7453befc (patch)
tree0ad8ff3605160f1e35c9626d3895b8c57b539b96 /source/blender/makesrna/intern/rna_space.c
parent729dab4e6616d5a9cb5d05d02c687115bac47bba (diff)
Dopesheet-Timeline: Collapse summary channel by default (so that it's more like default timeline)
TODO: Still can't figure out a way to get the channels region to hide
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 9c212d359aa..037bd581cf5 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1320,6 +1320,15 @@ static void rna_SpaceDopeSheetEditor_mode_update(bContext *C, PointerRNA *ptr)
else
saction->action = NULL;
}
+
+ /* Collapse summary channel and hide channel list for timeline */
+ if (saction->mode == SACTCONT_TIMELINE) {
+ saction->ads.flag |= ADS_FLAG_SUMMARY_COLLAPSED;
+ /* TODO: Set flags to hide the region */
+ }
+ else {
+ /* TODO: Set flags to unhide the region */
+ }
/* recalculate extents of channel list */
saction->flag |= SACTION_TEMP_NEEDCHANSYNC;