From 73fbd3eebd3f47311785a488dfdeb7353ca10563 Mon Sep 17 00:00:00 2001 From: Richard Antalik Date: Fri, 15 Oct 2021 23:35:49 +0200 Subject: [PATCH] VSE: Hide tool header by default Tools currently used by VSE don't have much useful settings, but they use a lot of space. Therefore these headers will be hidden by default. Property `show_region_tool_header` was added to view menu to enable tool settings. This could be resolved by region overlap, but it isn't working well currently. Differential Revision: https://developer.blender.org/D12875 --- release/scripts/startup/bl_ui/space_sequencer.py | 3 +-- source/blender/blenloader/intern/versioning_defaults.c | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 665e7c54fa7..bbb962e6611 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -169,8 +169,6 @@ class SEQUENCER_HT_header(Header): st = context.space_data - show_region_tool_header = st.show_region_tool_header - layout.template_header() layout.prop(st, "view_type", text="") @@ -421,6 +419,7 @@ class SEQUENCER_MT_view(Menu): # wm_keymap_item_find_props() (see T32595). layout.operator_context = 'INVOKE_REGION_PREVIEW' layout.prop(st, "show_region_ui") + layout.prop(st, "show_region_tool_header") layout.prop(st, "show_region_toolbar") layout.operator_context = 'INVOKE_DEFAULT' diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index c383c1cc4e5..2dcb2c35b22 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -208,7 +208,8 @@ static void blo_update_defaults_screen(bScreen *screen, LISTBASE_FOREACH (ARegion *, region, regionbase) { if (region->regiontype == RGN_TYPE_TOOL_HEADER) { - if ((sl->spacetype == SPACE_IMAGE) && hide_image_tool_header) { + if (((sl->spacetype == SPACE_IMAGE) && hide_image_tool_header) || + sl->spacetype == SPACE_SEQ) { region->flag |= RGN_FLAG_HIDDEN; } else {