diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2020-01-27 13:19:50 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-01-27 13:21:35 +0300 |
commit | 8a7859b9adff5e2ea6cef56a5d9906a327348461 (patch) | |
tree | 59fcf14265e6dd6923d65d8343fbe35c117d14a4 | |
parent | 82f08cb2b066dc7719d95dea9a31fc92c089d2cb (diff) |
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.
-rw-r--r-- | source/blender/editors/space_sequencer/space_sequencer.c | 8 |
1 files changed, 8 insertions, 0 deletions
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"); |