diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-03-24 03:07:15 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-03-24 03:07:15 +0300 |
commit | b601e577df031e2f8f4b9356e7a7c098456687dc (patch) | |
tree | bc6bd5775a381fc8ddb0ec05a03969114a8e0d08 /object_collection_manager | |
parent | c6d8243636123f5babc443614cb7ed90ad15b6f7 (diff) |
Collection Manager: Fix QCD filter button. Task: T69577
Fixes it so that the Filter by QCD button disappears when QCD is disabled.
Diffstat (limited to 'object_collection_manager')
-rw-r--r-- | object_collection_manager/__init__.py | 2 | ||||
-rw-r--r-- | object_collection_manager/ui.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index b7e44f88..59eda7db 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,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 diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 55dcbfb4..2f3a4e9e 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -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 = [] |