Collection Manager: Phantom Mode update. Task: T69577
Disabled QCD slot numeration fields and Re-numerate QCD Slots operator when in Phantom Mode
This commit is contained in:
parent
507c04aa72
commit
0b1520821f
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue