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:
Bastien Montagne 2019-08-14 11:42:22 +02:00
parent b4051db4fc
commit c47c7a44b2
Notes: blender-bot 2023-02-14 05:43:04 +01:00
Referenced by issue #68623, bpy.types.UI_UL_list.filter_items_by_name is case sensitive
1 changed files with 1 additions and 1 deletions

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