Collection Manager: Fix QCD filter button. Task: T69577
Fixes it so that the Filter by QCD button disappears when QCD is disabled.
This commit is contained in:
parent
c6d8243636
commit
b601e577df
|
@ -22,7 +22,7 @@ bl_info = {
|
|||
"name": "Collection Manager",
|
||||
"description": "Manage collections and their objects",
|
||||
"author": "Ryan Inch",
|
||||
"version": (2,4,1),
|
||||
"version": (2,4,2),
|
||||
"blender": (2, 80, 0),
|
||||
"location": "View3D - Object Mode (Shortcut - M)",
|
||||
"warning": '', # used for warning icon and text in addons panel
|
||||
|
|
|
@ -422,7 +422,9 @@ class CM_UL_items(UIList):
|
|||
|
||||
subrow = row.row(align=True)
|
||||
subrow.prop(self, "filter_by_selected", text="", icon='SNAP_VOLUME')
|
||||
subrow.prop(self, "filter_by_qcd", text="", icon='EVENT_Q')
|
||||
|
||||
if context.preferences.addons[__package__].preferences.enable_qcd:
|
||||
subrow.prop(self, "filter_by_qcd", text="", icon='EVENT_Q')
|
||||
|
||||
def filter_items(self, context, data, propname):
|
||||
flt_flags = []
|
||||
|
|
Loading…
Reference in New Issue