minor edits to recent fix for addons
This commit is contained in:
@@ -77,7 +77,6 @@ del _namespace
|
||||
|
||||
|
||||
import bpy
|
||||
import addon_utils
|
||||
|
||||
|
||||
def register():
|
||||
@@ -97,7 +96,7 @@ def register():
|
||||
|
||||
items_unique = set()
|
||||
|
||||
for mod in addon_utils.modules(addon_utils._addons_fake_modules):
|
||||
for mod in addon_utils.modules(addon_utils.addons_fake_modules):
|
||||
info = addon_utils.module_bl_info(mod)
|
||||
items_unique.add(info["category"])
|
||||
|
||||
|
||||
@@ -926,7 +926,7 @@ class USERPREF_PT_addons(Panel):
|
||||
used_ext = {ext.module for ext in userpref.addons}
|
||||
|
||||
# collect the categories that can be filtered on
|
||||
addons = [(mod, addon_utils.module_bl_info(mod)) for mod in addon_utils.modules(addon_utils._addons_fake_modules)]
|
||||
addons = [(mod, addon_utils.module_bl_info(mod)) for mod in addon_utils.modules(addon_utils.addons_fake_modules)]
|
||||
|
||||
split = layout.split(percentage=0.2)
|
||||
col = split.column()
|
||||
|
||||
Reference in New Issue
Block a user