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

Collection Manager: Improve filtering 3. Task: T69577

Clean up treeview display code to be simpler and more
consistent with the rest of the filtering code.
parent b66e1363
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ bl_info = {
"name": "Collection Manager",
"description": "Manage collections and their objects",
"author": "Ryan Inch",
"version": (2, 17, 0),
"version": (2, 17, 1),
"blender": (2, 80, 0),
"location": "View3D - Object Mode (Shortcut - M)",
"warning": '', # used for warning icon and text in addons panel
......
......@@ -822,11 +822,12 @@ class CM_UL_items(UIList):
if not CM_UL_items.filtering: # display as treeview
CM_UL_items.new_collections.clear()
flt_flags = [self.bitflag_filter_item] * len(list_items)
flt_flags = [0] * len(list_items)
for idx, item in enumerate(list_items):
if not layer_collections[item.name]["visible"]:
flt_flags[idx] = 0
if layer_collections[item.name]["visible"]:
flt_flags[idx] = self.bitflag_filter_item
if self.use_filter_invert:
CM_UL_items.filtering = True # invert can act as pseudo filtering
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment