Page MenuHome
Paste P2932

(An Untitled Masterwork)
ActivePublic

Authored by Sergey Sharybin (sergey) on May 11 2022, 3:59 PM.
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 1ee996de8b9..ffaeea44686 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -250,8 +250,10 @@ class CLIP_HT_header(Header):
layout.label(text="%s Solve error: %.2f px" %
(active_object.name, r.average_error))
+ object_icon = 'CAMERA_DATA' if active_object.is_camera else 'OBJECT_DATA'
+
row = layout.row()
- row.popover(panel='CLIP_PT_objects')
+ row.popover(panel='CLIP_PT_objects', text=active_object.name, icon=object_icon)
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)

Event Timeline

Sergey Sharybin (sergey) created this object with edit policy "Administrators".