[Bf-blender-cvs] [e3ebe5c8c3b] blender2.8: Dopesheet-Timeline: Collapse summary channel by default (so that it's more like default timeline)

Joshua Leung noreply at git.blender.org
Fri Apr 20 19:06:48 CEST 2018


Commit: e3ebe5c8c3b24baa6fda8c28cbffa38f7453befc
Author: Joshua Leung
Date:   Thu Apr 19 18:51:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe3ebe5c8c3b24baa6fda8c28cbffa38f7453befc

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

===================================================================

M	source/blender/makesrna/intern/rna_space.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list