Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/__init__.py
| Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | from bpy.props import ( | ||||
| StringProperty, | StringProperty, | ||||
| ) | ) | ||||
| from bpy.types import WindowManager | from bpy.types import WindowManager | ||||
| def addon_filter_items(_self, _context): | def addon_filter_items(_self, _context): | ||||
| import addon_utils | import addon_utils | ||||
| items = [ | items = [ | ||||
| ('All', "All", "All Add-ons"), | |||||
| ('User', "User", "All Add-ons Installed by User"), | |||||
| ('Enabled', "Enabled", "All Enabled Add-ons"), | ('Enabled', "Enabled", "All Enabled Add-ons"), | ||||
| ('Disabled', "Disabled", "All Disabled Add-ons"), | ('Disabled', "Disabled", "All Disabled Add-ons"), | ||||
| ('All', "All", "All Add-ons"), | |||||
| ('User', "User", "All Add-ons Installed by User"), | |||||
| ] | ] | ||||
| items_unique = set() | items_unique = set() | ||||
| for mod in addon_utils.modules(refresh=False): | for mod in addon_utils.modules(refresh=False): | ||||
| info = addon_utils.module_bl_info(mod) | info = addon_utils.module_bl_info(mod) | ||||
| items_unique.add(info["category"]) | items_unique.add(info["category"]) | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||