From b508de3d3cee4f4cf2010bc73ecbd4acbfcb6d7e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 21 Nov 2018 21:41:00 +0100 Subject: [PATCH] UI: First batch of fixing missing categories for panels. --- release/scripts/startup/bl_ui/space_node.py | 7 +++++++ release/scripts/startup/bl_ui/space_sequencer.py | 5 +++++ release/scripts/startup/bl_ui/space_text.py | 2 ++ release/scripts/startup/bl_ui/space_view3d.py | 1 + 4 files changed, 15 insertions(+) diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 05100f07cdd..a15bb24d100 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -360,6 +360,7 @@ class NODE_MT_specials(Menu): class NODE_PT_active_node_generic(Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_label = "Node" @classmethod @@ -377,6 +378,7 @@ class NODE_PT_active_node_generic(Panel): class NODE_PT_active_node_color(Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_label = "Color" bl_options = {'DEFAULT_CLOSED'} bl_parent_id = 'NODE_PT_active_node_generic' @@ -406,6 +408,7 @@ class NODE_PT_active_node_color(Panel): class NODE_PT_active_node_properties(Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_label = "Properties" bl_options = {'DEFAULT_CLOSED'} bl_parent_id = 'NODE_PT_active_node_generic' @@ -439,6 +442,7 @@ class NODE_PT_active_node_properties(Panel): class NODE_PT_backdrop(Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_label = "Backdrop" @classmethod @@ -473,6 +477,7 @@ class NODE_PT_backdrop(Panel): class NODE_PT_quality(bpy.types.Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_label = "Performance" @classmethod @@ -526,6 +531,7 @@ class NODE_UL_interface_sockets(bpy.types.UIList): class NODE_PT_grease_pencil(AnnotationDataPanel, Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_options = {'DEFAULT_CLOSED'} # NOTE: this is just a wrapper around the generic GP Panel @@ -539,6 +545,7 @@ class NODE_PT_grease_pencil(AnnotationDataPanel, Panel): class NODE_PT_grease_pencil_tools(GreasePencilToolsPanel, Panel): bl_space_type = 'NODE_EDITOR' bl_region_type = 'UI' + bl_category = "Node" bl_options = {'DEFAULT_CLOSED'} # NOTE: this is just a wrapper around the generic GP tools panel diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 402913ab642..799103daf79 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -1185,6 +1185,7 @@ class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel): bl_label = "Scene Preview/Render" bl_space_type = 'SEQUENCE_EDITOR' bl_region_type = 'UI' + bl_category = "Strip" def draw(self, context): layout = self.layout @@ -1203,6 +1204,7 @@ class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel): class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): bl_label = "View Settings" + bl_category = "Strip" def draw(self, context): layout = self.layout @@ -1224,6 +1226,7 @@ class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): class SEQUENCER_PT_view_safe_areas(SequencerButtonsPanel_Output, Panel): bl_label = "Safe Areas" + bl_category = "Strip" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -1326,6 +1329,7 @@ class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel): class SEQUENCER_PT_grease_pencil(AnnotationDataPanel, SequencerButtonsPanel_Output, Panel): bl_space_type = 'SEQUENCE_EDITOR' bl_region_type = 'UI' + bl_category = "Strip" # NOTE: this is just a wrapper around the generic GP Panel # But, it should only show up when there are images in the preview region @@ -1334,6 +1338,7 @@ class SEQUENCER_PT_grease_pencil(AnnotationDataPanel, SequencerButtonsPanel_Outp class SEQUENCER_PT_grease_pencil_tools(GreasePencilToolsPanel, SequencerButtonsPanel_Output, Panel): bl_space_type = 'SEQUENCE_EDITOR' bl_region_type = 'UI' + bl_category = "Strip" # NOTE: this is just a wrapper around the generic GP tools panel # It contains access to some essential tools usually found only in diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py index 9ef165a36a6..12ba1c31cd5 100644 --- a/release/scripts/startup/bl_ui/space_text.py +++ b/release/scripts/startup/bl_ui/space_text.py @@ -111,6 +111,7 @@ class TEXT_MT_editor_menus(Menu): class TEXT_PT_properties(Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' + bl_category = "Text" bl_label = "Properties" def draw(self, context): @@ -142,6 +143,7 @@ class TEXT_PT_properties(Panel): class TEXT_PT_find(Panel): bl_space_type = 'TEXT_EDITOR' bl_region_type = 'UI' + bl_category = "Text" bl_label = "Find" def draw(self, context): diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index b301cc6a2e1..127cc58054f 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -5088,6 +5088,7 @@ class VIEW3D_PT_overlay_gpencil_options(Panel): class VIEW3D_PT_quad_view(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' + bl_category = "View" bl_label = "Quad View" bl_options = {'DEFAULT_CLOSED'}