Skip to content
Snippets Groups Projects
Commit 0b152082 authored by Ryan Inch's avatar Ryan Inch
Browse files

Collection Manager: Phantom Mode update. Task: T69577

Disabled QCD slot numeration fields and Re-numerate QCD Slots
operator when in Phantom Mode
parent 507c04aa
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ bl_info = { ...@@ -22,7 +22,7 @@ bl_info = {
"name": "Collection Manager", "name": "Collection Manager",
"description": "Manage collections and their objects", "description": "Manage collections and their objects",
"author": "Ryan Inch", "author": "Ryan Inch",
"version": (2,4,11), "version": (2,4,12),
"blender": (2, 80, 0), "blender": (2, 80, 0),
"location": "View3D - Object Mode (Shortcut - M)", "location": "View3D - Object Mode (Shortcut - M)",
"warning": '', # used for warning icon and text in addons panel "warning": '', # used for warning icon and text in addons panel
......
...@@ -109,16 +109,16 @@ class CollectionManager(Operator): ...@@ -109,16 +109,16 @@ class CollectionManager(Operator):
sec1.operator("view3d.expand_all_items", text=text) 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: for laycol in collection_tree:
if laycol["has_children"]: if laycol["has_children"]:
sec1.enabled = True sec1.enabled = True
break 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 = toggle_row.row()
sec2.alignment = 'RIGHT' sec2.alignment = 'RIGHT'
...@@ -242,6 +242,9 @@ class CollectionManager(Operator): ...@@ -242,6 +242,9 @@ class CollectionManager(Operator):
view.enabled = False view.enabled = False
addcollec_row.enabled = False addcollec_row.enabled = False
if context.preferences.addons[__package__].preferences.enable_qcd:
renum.enabled = False
def execute(self, context): def execute(self, context):
wm = context.window_manager wm = context.window_manager
...@@ -488,6 +491,9 @@ class CM_UL_items(UIList): ...@@ -488,6 +491,9 @@ class CM_UL_items(UIList):
row_setcol.enabled = False row_setcol.enabled = False
rm_op.enabled = False rm_op.enabled = False
if context.preferences.addons[__package__].preferences.enable_qcd:
QCD.enabled = False
def draw_filter(self, context, layout): def draw_filter(self, context, layout):
row = layout.row() row = layout.row()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment