[Bf-blender-cvs] [8a7859b9adf] master: Fix T73428: Editor type dropdown menu missing in VSE

Julian Eisel noreply at git.blender.org
Mon Jan 27 11:22:09 CET 2020


Commit: 8a7859b9adff5e2ea6cef56a5d9906a327348461
Author: Julian Eisel
Date:   Mon Jan 27 11:19:50 2020 +0100
Branches: master
https://developer.blender.org/rB8a7859b9adff5e2ea6cef56a5d9906a327348461

Fix T73428: Editor type dropdown menu missing in VSE

Mistake in 6a49161c8c60, the tool-header region was not created when
creating a new VSE editor (as opposed to an existing one in some
workspace).

There was also no way to get the tool-header to show in such cases.

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

M	source/blender/editors/space_sequencer/space_sequencer.c

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

diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c
index 81783f9105c..53202b65838 100644
--- a/source/blender/editors/space_sequencer/space_sequencer.c
+++ b/source/blender/editors/space_sequencer/space_sequencer.c
@@ -95,6 +95,14 @@ static SpaceLink *sequencer_new(const ScrArea *UNUSED(sa), const Scene *scene)
   sseq->mainb = SEQ_DRAW_IMG_IMBUF;
   sseq->flag = SEQ_SHOW_GPENCIL | SEQ_USE_ALPHA | SEQ_SHOW_MARKERS;
 
+  /* tool header */
+  ar = MEM_callocN(sizeof(ARegion), "tool header for sequencer");
+
+  BLI_addtail(&sseq->regionbase, ar);
+  ar->regiontype = RGN_TYPE_TOOL_HEADER;
+  ar->alignment = (U.uiflag & USER_HEADER_BOTTOM) ? RGN_ALIGN_BOTTOM : RGN_ALIGN_TOP;
+  ar->flag = RGN_FLAG_HIDDEN | RGN_FLAG_HIDDEN_BY_USER;
+
   /* header */
   ar = MEM_callocN(sizeof(ARegion), "header for sequencer");



More information about the Bf-blender-cvs mailing list