Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-27 09:22:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-27 09:35:43 +0300
commitc67305f21b4cb308750bfc83d2f375c3c8e2f3a4 (patch)
treec677f5a599ba293197fab32b944b8f9ace5495ca /release/scripts/startup/bl_ui/space_view3d.py
parent5f7c671c56d90adca4f49a769e2d6fee5a92f9a1 (diff)
UI: Use "View" category for 3D view panels
Allows add-ons to add other categories.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 6877a45013a..328ed854044 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -370,6 +370,7 @@ class ShowHideMenu:
# NOTE: this doesn't seem to be able to be used directly
class VIEW3D_MT_transform_base(Menu):
bl_label = "Transform"
+ bl_category = "View"
# TODO: get rid of the custom text strings?
def draw(self, context):
@@ -3868,6 +3869,7 @@ class VIEW3D_MT_proportional_editing_falloff_pie(Menu):
class VIEW3D_PT_view3d_properties(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
+ bl_category = "View"
bl_label = "View"
def draw(self, context):
@@ -3905,6 +3907,7 @@ class VIEW3D_PT_view3d_properties(Panel):
class VIEW3D_PT_view3d_camera_lock(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
+ bl_category = "View"
bl_label = "Camera Lock"
bl_parent_id = "VIEW3D_PT_view3d_properties"
@@ -3939,6 +3942,7 @@ class VIEW3D_PT_view3d_camera_lock(Panel):
class VIEW3D_PT_view3d_cursor(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
+ bl_category = "View"
bl_label = "3D Cursor"
def draw(self, context):
@@ -4955,6 +4959,7 @@ class VIEW3D_PT_quad_view(Panel):
class VIEW3D_PT_grease_pencil(AnnotationDataPanel, Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
+ bl_category = "View"
# NOTE: this is just a wrapper around the generic GP Panel