Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Inch <mythologylover75@gmail.com>2020-10-20 10:16:35 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-10-20 10:16:35 +0300
commit96291108b1027930b41a39cc1aba155ded75499f (patch)
tree9868d5d52294babe6bb3049d82344319625544f6
parentb66e1363a07d7945efb0aa470a031bb18eaedf0f (diff)
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.
-rw-r--r--object_collection_manager/__init__.py2
-rw-r--r--object_collection_manager/ui.py7
2 files changed, 5 insertions, 4 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py
index 1439be2f..bc62e947 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, 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
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py
index a32f33c9..2177822c 100644
--- a/object_collection_manager/ui.py
+++ b/object_collection_manager/ui.py
@@ -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