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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Blankfield <vvv>2020-12-16 08:28:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-12-16 08:35:26 +0300
commitf34ca933a806b83be957f69835c7a6033fe5ca2c (patch)
treee61f929c2944522d2e7bc336f3b1eec45ae583ef
parenta869a61c88e37ce8a16676162ef7db3c62449b46 (diff)
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
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index ae45b9799f1..1d59fe4bfa2 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -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)