diff options
author | Sriharsha Kotcharlakot <k.venkatsriharsha@gmail.com> | 2020-09-15 18:51:14 +0300 |
---|---|---|
committer | Sriharsha Kotcharlakot <k.venkatsriharsha@gmail.com> | 2020-09-15 18:51:14 +0300 |
commit | 77087d32047eef0730750a2bd2ad19f23082e36b (patch) | |
tree | 4af22b8d138f2587399d52f40141de233c7e1338 /release/scripts/startup/bl_ui/space_properties.py | |
parent | ba39073755673bb61c4c96bc4b557c4622ca28c8 (diff) | |
parent | f59ce4d55c04a61a10d9e9567b53ee652972b60a (diff) |
Merge branch 'master' into soc-2020-fluid-toolssoc-2020-fluid-tools
Diffstat (limited to 'release/scripts/startup/bl_ui/space_properties.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_properties.py | 9 |
1 files changed, 8 insertions, 1 deletions
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' |