diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-10-16 00:35:49 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-10-16 00:42:26 +0300 |
commit | 73fbd3eebd3f47311785a488dfdeb7353ca10563 (patch) | |
tree | 34b8e6d0f370e6d90c450b121c897d0f3537a46b | |
parent | 41dc55874742e8ee9d1361d729bec25514e1e3ae (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 3 | ||||
-rw-r--r-- | 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 { |