[Bf-blender-cvs] [0485a873a35] tracking_tools: Clip Editor: Objects popover placement

Sebastian Koenig noreply at git.blender.org
Mon Apr 11 14:07:11 CEST 2022


Commit: 0485a873a350e4035ea3a8474bbc472082d1ef5d
Author: Sebastian Koenig
Date:   Mon Apr 11 13:54:44 2022 +0200
Branches: tracking_tools
https://developer.blender.org/rB0485a873a350e4035ea3a8474bbc472082d1ef5d

Clip Editor: Objects popover placement

I have moved the objects popover from the toolbar header to the normal
header. If people would disable the toolbar header they would still need
to be able to see the objects popover.
In Tracking mode the placement is next to the solve error info, which
makes sense, because changing the tracking object also displays a
differen solve error.
In Mask mode it is a little bit weird, because the object popover is now
between the Mask Display popover and the Clip Display popover.

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

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 a06ed5f7479..31eb4c20549 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -164,11 +164,9 @@ class CLIP_HT_tool_header(Header):
         clip = context.space_data.clip
         if clip:
             if tool_mode == 'TRACKING':
-                layout.popover(panel='CLIP_PT_track_settings')
                 settings = clip.tracking.settings
                 layout.prop(settings, "speed", text="")
 
-            layout.popover(panel='CLIP_PT_objects')
 
 
 class CLIP_HT_header(Header):
@@ -252,6 +250,8 @@ class CLIP_HT_header(Header):
                     layout.label(text="Solve error: %.2f px" %
                                  (r.average_error))
 
+                row = layout.row()
+                row.popover(panel='CLIP_PT_objects')
                 row = layout.row(align=True)
                 icon = 'LOCKED' if sc.lock_selection else 'UNLOCKED'
                 row.operator("clip.lock_selection_toggle", icon=icon, text="", depress=sc.lock_selection)
@@ -305,6 +305,8 @@ class CLIP_HT_header(Header):
             row = layout.row()
             row.template_ID(sc, "mask", new="mask.new")
             row.popover(panel='CLIP_PT_mask_display')
+            row = layout.row()
+            row.popover(panel='CLIP_PT_objects')
             row = layout.row(align=True)
             icon = 'LOCKED' if sc.lock_selection else 'UNLOCKED'
             row.operator("clip.lock_selection_toggle", icon=icon, text="", depress=sc.lock_selection)



More information about the Bf-blender-cvs mailing list