diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index b1e11921e4b2f142e8b306902353470186433e32..2aa38c5bd4a8af15fc428e1caa2703b69b72d21b 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,4,11), + "version": (2,4,12), "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 5561da2625526a7f8b745fefb8525b1821a847d5..a90a619f1cb41a1de1ea9adb4ffb8bb122afe0bd 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -109,16 +109,16 @@ class CollectionManager(Operator): sec1.operator("view3d.expand_all_items", text=text) - if context.preferences.addons[__package__].preferences.enable_qcd: - renum = toggle_row.row() - renum.alignment = 'LEFT' - renum.operator("view3d.renumerate_qcd_slots") - for laycol in collection_tree: if laycol["has_children"]: sec1.enabled = True break + if context.preferences.addons[__package__].preferences.enable_qcd: + renum = toggle_row.row() + renum.alignment = 'LEFT' + renum.operator("view3d.renumerate_qcd_slots") + sec2 = toggle_row.row() sec2.alignment = 'RIGHT' @@ -242,6 +242,9 @@ class CollectionManager(Operator): view.enabled = False addcollec_row.enabled = False + if context.preferences.addons[__package__].preferences.enable_qcd: + renum.enabled = False + def execute(self, context): wm = context.window_manager @@ -488,6 +491,9 @@ class CM_UL_items(UIList): row_setcol.enabled = False rm_op.enabled = False + if context.preferences.addons[__package__].preferences.enable_qcd: + QCD.enabled = False + def draw_filter(self, context, layout): row = layout.row()