[Bf-blender-cvs] [73fbd3eebd3] master: VSE: Hide tool header by default
Richard Antalik
noreply at git.blender.org
Fri Oct 15 23:42:50 CEST 2021
Commit: 73fbd3eebd3f47311785a488dfdeb7353ca10563
Author: Richard Antalik
Date: Fri Oct 15 23:35:49 2021 +0200
Branches: master
https://developer.blender.org/rB73fbd3eebd3f47311785a488dfdeb7353ca10563
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
===================================================================
M release/scripts/startup/bl_ui/space_sequencer.py
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list