diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-10 06:43:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-10 06:48:25 +0300 |
commit | 6b082278d19599100cc0b50cc96e4fa00865d093 (patch) | |
tree | d5f7341c5f53d1282d71383218f2a9f8d46c1caa /release/scripts/startup/bl_ui/properties_workspace.py | |
parent | a287153ee49741e23dbee273a6ad7425dab94de4 (diff) |
UI: expose tool settings in the 3D view side-bar
Internally tool settings have been moved to the 3D view.
Added the ability for to draw panels from another space/region
so they can be mirrored in the properties editor.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_workspace.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_workspace.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_workspace.py b/release/scripts/startup/bl_ui/properties_workspace.py index daea94a3811..7d56a4d75cb 100644 --- a/release/scripts/startup/bl_ui/properties_workspace.py +++ b/release/scripts/startup/bl_ui/properties_workspace.py @@ -24,11 +24,15 @@ from bpy.types import ( from rna_prop_ui import PropertyPanel - class WorkSpaceButtonsPanel: - bl_space_type = 'PROPERTIES' - bl_region_type = 'WINDOW' - bl_context = ".workspace" + # bl_space_type = 'PROPERTIES' + # bl_region_type = 'WINDOW' + # bl_context = ".workspace" + + # Developer note: this is displayed in tool settings as well as the 3D view. + bl_space_type = 'VIEW_3D' + bl_region_type = 'UI' + bl_category = "Tool" class WORKSPACE_PT_main(WorkSpaceButtonsPanel, Panel): |