Fix: Ensure that summary channel is enabled when creating timeline

This commit is contained in:
Joshua Leung 2018-06-21 17:18:35 +12:00
parent b081436d1c
commit 636a690eb1
2 changed files with 3 additions and 1 deletions

View File

@ -144,6 +144,7 @@ static void do_version_area_change_space_to_space_action(ScrArea *area, const Sc
saction->mode = SACTCONT_TIMELINE;
saction->ads.flag |= ADS_FLAG_SUMMARY_COLLAPSED;
saction->ads.filterflag |= ADS_FILTER_SUMMARY;
}
/**

View File

@ -1500,9 +1500,10 @@ static void rna_SpaceDopeSheetEditor_mode_update(bContext *C, PointerRNA *ptr)
saction->action = NULL;
}
/* Collapse summary channel and hide channel list for timeline */
/* Collapse (and show) summary channel and hide channel list for timeline */
if (saction->mode == SACTCONT_TIMELINE) {
saction->ads.flag |= ADS_FLAG_SUMMARY_COLLAPSED;
saction->ads.filterflag |= ADS_FILTER_SUMMARY;
}
if (sa && sa->spacedata.first == saction) {