diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 22:45:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-31 22:45:26 +0300 |
commit | 995fa1f4c0b1dc746b0978033b41984a653784e4 (patch) | |
tree | 65f02fd604184a901a191d1314a3b05bfb489577 /release/scripts/startup/bl_ui/space_properties.py | |
parent | 14dee6d7a59f16761201798f85e60d09bd353750 (diff) |
UI: new tool properties space type
This currently shows panels that were in the 2.79 3D view toolbar
which are now popovers.
In some cases it's useful for these to stay open.
This commit adds a space type to do this.
Note this is currently empty in object mode.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_properties.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_properties.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_properties.py b/release/scripts/startup/bl_ui/space_properties.py index 20cb5719e20..cd7137e0254 100644 --- a/release/scripts/startup/bl_ui/space_properties.py +++ b/release/scripts/startup/bl_ui/space_properties.py @@ -31,7 +31,9 @@ class PROPERTIES_HT_header(Header): row = layout.row() row.template_header() - row.prop(view, "context", expand=True, icon_only=True) + + if view.mode == 'DATA_PROPERTIES': + row.prop(view, "context", expand=True, icon_only=True) classes = ( |