UI: include the category for add-ons search

This lead to some confusion, see T83747.

Now the category is included in the search when the category is "All".

Ref D9848
This commit is contained in:
Vincent Blankfield 2020-12-16 16:28:44 +11:00 committed by Campbell Barton
parent a869a61c88
commit f34ca933a8
1 changed files with 6 additions and 6 deletions

View File

@ -1881,12 +1881,12 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
is_visible = is_visible and is_enabled
if is_visible:
if search and search not in info["name"].lower():
if info["author"]:
if search not in info["author"].lower():
continue
else:
continue
if search and not (
(search in info["name"].lower()) or
(info["author"] and (search in info["author"].lower())) or
((filter == "All") and (search in info["category"].lower()))
):
continue
# Skip 2.7x add-ons included with Blender, unless in debug mode.
is_addon_27x = info.get("blender", (0,)) < (2, 80)