Fix T68623: bpy.types.UI_UL_list.filter_items_by_name is case sensitive.

Was a mismatch with default behavior from C-defined basic UI list...
This commit is contained in:
2019-08-14 11:42:22 +02:00
parent b4051db4fc
commit c47c7a44b2

View File

@@ -201,7 +201,7 @@ class UI_UL_list(bpy.types.UIList):
for i, item in enumerate(items):
name = getattr(item, propname, None)
# This is similar to a logical xor
if bool(name and fnmatch.fnmatchcase(name, pattern)) is not bool(reverse):
if bool(name and fnmatch.fnmatch(name, pattern)) is not bool(reverse):
flags[i] |= bitflag
return flags