Commit: e1a3584432cda4cb57944c8ee6732f97f25f4c1a Author: Sebastian Koenig Date: Thu Sep 23 08:59:04 2021 +0200 Branches: tracking_tools https://developer.blender.org/rBe1a3584432cda4cb57944c8ee6732f97f25f4c1a
Tracking Tools: Only show toolheader in Clip View There are no tools available for Graph and Dopesheet view, so do not show the tool header there. =================================================================== 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 76f1c7c0868..09926998a37 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -139,18 +139,24 @@ class CLIP_HT_tool_header(Header): def draw(self, context): layout = self.layout + sc = context.space_data layout.template_header() + + if sc.view == 'CLIP': - self.draw_tool_settings(context) + self.draw_tool_settings(context) - layout.separator_spacer() + layout.separator_spacer() - CLIP_HT_header.draw_xform_template(layout, context) + CLIP_HT_header.draw_xform_template(layout, context) - layout.separator_spacer() + layout.separator_spacer() + + self.draw_mode_settings(context) - self.draw_mode_settings(context) + else: + sc.show_region_tool_header = False def draw_tool_settings(self, context): layout = self.layout _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs