diff options
Diffstat (limited to 'release/scripts/startup/bl_ui/space_properties.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_properties.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_properties.py b/release/scripts/startup/bl_ui/space_properties.py index 765cab1ace2..b2a7246af75 100644 --- a/release/scripts/startup/bl_ui/space_properties.py +++ b/release/scripts/startup/bl_ui/space_properties.py @@ -46,6 +46,8 @@ class PROPERTIES_HT_header(Header): layout.separator_spacer() + layout.popover(panel="PROPERTIES_PT_options", text="") + class PROPERTIES_PT_navigation_bar(Panel): bl_space_type = 'PROPERTIES' @@ -69,9 +71,25 @@ class PROPERTIES_PT_navigation_bar(Panel): layout.prop_tabs_enum(view, "context", icon_only=True) +class PROPERTIES_PT_options(Panel): + bl_space_type = 'PROPERTIES' + bl_region_type = 'HEADER' + bl_label = 'Options' + + def draw(self, context): + layout = self.layout + + space = context.space_data + + col = layout.column() + col.label(text="Sync with Outliner") + col.row().prop(space, "outliner_sync", expand=True) + + classes = ( PROPERTIES_HT_header, PROPERTIES_PT_navigation_bar, + PROPERTIES_PT_options, ) if __name__ == "__main__": # only for live edit. |