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
This commit is contained in:
Joshua Leung 2018-04-19 18:51:42 +02:00
parent 729dab4e66
commit e3ebe5c8c3
1 changed files with 9 additions and 0 deletions

View File

@ -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;