[Bf-blender-cvs] [08117cb0e38] tracking_tools: Move space selector to header

Sergey Sharybin noreply at git.blender.org
Thu Mar 24 15:08:31 CET 2022


Commit: 08117cb0e389f022dddc28d47aea0b7572e9981c
Author: Sergey Sharybin
Date:   Thu Mar 24 10:41:36 2022 +0100
Branches: tracking_tools
https://developer.blender.org/rB08117cb0e389f022dddc28d47aea0b7572e9981c

Move space selector to header

This is where it belongs in all other editors.
Is also weird to see it below the space menu.

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

M	release/scripts/startup/bl_ui/space_clip.py

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

diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 9a198bf6d6e..a06ed5f7479 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -125,8 +125,6 @@ class CLIP_HT_tool_header(Header):
         layout = self.layout
         sc = context.space_data
 
-        layout.template_header()
-        
         if sc.view == 'CLIP':
 
             self.draw_tool_settings(context)
@@ -196,9 +194,6 @@ class CLIP_HT_header(Header):
         clip = sc.clip
         show_region_tool_header = sc.show_region_tool_header
 
-        if not show_region_tool_header:
-            layout.template_header()
-
         CLIP_MT_tracking_editor_menus.draw_collapsible(context, layout)
 
         layout.separator_spacer()
@@ -291,7 +286,6 @@ class CLIP_HT_header(Header):
     def _draw_masking(self, context):
         layout = self.layout
 
-        tool_settings = context.tool_settings
         sc = context.space_data
         clip = sc.clip
 
@@ -321,8 +315,7 @@ class CLIP_HT_header(Header):
 
         sc = context.space_data
 
-        if not sc.show_region_tool_header:
-            layout.template_header()
+        layout.template_header()
 
         layout.prop(sc, "mode", text="")
         if sc.mode == 'TRACKING':



More information about the Bf-blender-cvs mailing list