From 6b29c3fa07f54a0b0d123a90049fbad36a1334c2 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 15 Sep 2020 09:50:14 -0500 Subject: Property Search: Move properties context buttons back to a panel The context path "breadcrumbs" used to be in a panel in 2.79. Although they look a bit better in the header, there isn't enough space for them with the property search field in the header as well. Maybe there will be another solution in the long term to fit both the search field and this panel in the header, but for now, this commit moves these labels back to a header-less panel. Differential Revision: https://developer.blender.org/D8853 --- release/scripts/startup/bl_ui/space_properties.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'release/scripts/startup') diff --git a/release/scripts/startup/bl_ui/space_properties.py b/release/scripts/startup/bl_ui/space_properties.py index 7d9ca687524..53b67a20115 100644 --- a/release/scripts/startup/bl_ui/space_properties.py +++ b/release/scripts/startup/bl_ui/space_properties.py @@ -23,11 +23,18 @@ from bpy.types import Header, Panel class PROPERTIES_HT_header(Header): bl_space_type = 'PROPERTIES' - def draw(self, _context): + def draw(self, context): layout = self.layout + view = context.space_data layout.template_header() + layout.separator_spacer() + + row = layout.row() + row.emboss = 'NONE' + row.operator("buttons.toggle_pin", icon=('PINNED' if view.use_pin_id else 'UNPINNED'), text="") + class PROPERTIES_PT_navigation_bar(Panel): bl_space_type = 'PROPERTIES' -- cgit v1.2.3