[Bf-extensions-cvs] [77b3f0e8] master: Collection Manager: Remove tab from N-Panel. Task: T69577

Ryan Inch noreply at git.blender.org
Sat Jul 4 08:58:29 CEST 2020


Commit: 77b3f0e83e78dd7387d665e91d2bfd46b7c98075
Author: Ryan Inch
Date:   Sat Jul 4 02:53:52 2020 -0400
Branches: master
https://developer.blender.org/rBA77b3f0e83e78dd7387d665e91d2bfd46b7c98075

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.

===================================================================

M	object_collection_manager/__init__.py
M	object_collection_manager/ui.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list