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:
@@ -1881,11 +1881,11 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
|||||||
is_visible = is_visible and is_enabled
|
is_visible = is_visible and is_enabled
|
||||||
|
|
||||||
if is_visible:
|
if is_visible:
|
||||||
if search and search not in info["name"].lower():
|
if search and not (
|
||||||
if info["author"]:
|
(search in info["name"].lower()) or
|
||||||
if search not in info["author"].lower():
|
(info["author"] and (search in info["author"].lower())) or
|
||||||
continue
|
((filter == "All") and (search in info["category"].lower()))
|
||||||
else:
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Skip 2.7x add-ons included with Blender, unless in debug mode.
|
# Skip 2.7x add-ons included with Blender, unless in debug mode.
|
||||||
|
|||||||
Reference in New Issue
Block a user