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:
parent
729dab4e66
commit
e3ebe5c8c3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue