[Bf-blender-cvs] [e9bf1d5f936] tracking_tools: MCE: Add some options to the topbar tool settings

Sebastian Koenig noreply at git.blender.org
Wed Jul 14 13:47:57 CEST 2021


Commit: e9bf1d5f93677c43f7cbae5851841a78a2a6315c
Author: Sebastian Koenig
Date:   Wed Jul 14 13:42:59 2021 +0200
Branches: tracking_tools
https://developer.blender.org/rBe9bf1d5f93677c43f7cbae5851841a78a2a6315c

MCE: Add some options to the topbar tool settings

There are now 3 new menues on the left side of the topbar tool settings:
- Speed
- Tracking Settings
- Objects
Having the tracking speed menu now in the topbar makes more sense than
before, where it was located in the tracking settings.

The tracking presets are now located in left side of the topbar, next to
the tool settings. That way the presets are always accessible, even when
a different tool is active, which might be handy when using Detect
Features.

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

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 9e5f84c9efe..68e6f3c5144 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -160,6 +160,8 @@ class CLIP_HT_tool_header(Header):
         from bl_ui.space_toolsystem_common import ToolSelectPanelHelper
         tool = ToolSelectPanelHelper.draw_active_tool_header(context, layout)
         tool_mode = context.mode if tool is None else tool.mode
+        layout.separator()
+        CLIP_PT_tracking_settings_presets.draw_menu(self.layout)
 
     def draw_mode_settings(self, context):
         layout = self.layout
@@ -169,6 +171,14 @@ class CLIP_HT_tool_header(Header):
         from bl_ui.space_toolsystem_common import ToolSelectPanelHelper
         tool = ToolSelectPanelHelper.tool_active_from_context(context)
         tool_mode = context.mode if tool is None else tool.mode
+        if tool_mode == 'TRACKING':
+            clip = context.space_data.clip
+            active = clip.tracking.tracks.active
+            settings = clip.tracking.settings
+            # Expand panels from the side-bar as popovers.
+            layout.popover(panel="CLIP_PT_track_settings")
+            layout.popover(panel="CLIP_PT_objects")
+            layout.prop(settings, "speed", text="")
 
 
 class CLIP_HT_header(Header):
@@ -954,7 +964,6 @@ class CLIP_PT_track_settings_tool(CLIP_PT_tracking_panel, Panel):
         col = layout.column()
         col.prop(active, "use_mask")
         col.prop(active, "frames_limit")
-        col.prop(settings, "speed")
 
 
 class CLIP_PT_track_settings_extras(CLIP_PT_tracking_panel, Panel):
@@ -987,7 +996,6 @@ class CLIP_PT_track_settings_extras(CLIP_PT_tracking_panel, Panel):
         col = layout.column()
         col.prop(active, "use_mask")
         col.prop(active, "frames_limit")
-        col.prop(settings, "speed")
 
 
 class CLIP_PT_tracking_camera(Panel):



More information about the Bf-blender-cvs mailing list