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 | |
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.
-rw-r--r-- | object_collection_manager/__init__.py | 2 | ||||
-rw-r--r-- | object_collection_manager/ui.py | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index 7b32e00e..928a62ec 100644 --- a/object_collection_manager/__init__.py +++ b/object_collection_manager/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Collection Manager", "description": "Manage collections and their objects", "author": "Ryan Inch", - "version": (2, 9, 1), + "version": (2, 9, 2), "blender": (2, 80, 0), "location": "View3D - Object Mode (Shortcut - M)", "warning": '', # used for warning icon and text in addons panel 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 |