diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-07-04 09:53:52 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-07-04 09:53:52 +0300 |
commit | 77b3f0e83e78dd7387d665e91d2bfd46b7c98075 (patch) | |
tree | 119bd5069f914f8d1bb96e44071db4f8356ac007 /object_collection_manager/ui.py | |
parent | 969e77eda1fe42088db5198d8fc18281ce5efb2b (diff) |
Collection Manager: Remove tab from N-Panel. Task: T69577
Remove the Display Options tab from the N-Panel as it's only supposed
to show up in a popover in the main popup.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 8516ecf9..3bd614a6 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -702,9 +702,12 @@ class CM_UL_items(UIList): class CMDisplayOptionsPanel(Panel): bl_label = "Display Options" bl_idname = "COLLECTIONMANAGER_PT_display_options" + + # set space type to VIEW_3D and region type to HEADER + # because we only need it in a popover in the 3D View + # and don't want it always present in the UI/N-Panel bl_space_type = 'VIEW_3D' - bl_region_type = 'UI' - bl_category = "Collection Manager" + bl_region_type = 'HEADER' def draw(self, context): cm = context.scene.collection_manager |