Cleanup: Remove hack to hide pre 2.8 addons in the user preferences
Should be safe to do so now that 2.8+ has been out for 8 releases and over 2 years now. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D12984
This commit is contained in:
@@ -1868,11 +1868,6 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
|||||||
if p
|
if p
|
||||||
)
|
)
|
||||||
|
|
||||||
# Development option for 2.8x, don't show users bundled addons
|
|
||||||
# unless they have been updated for 2.8x.
|
|
||||||
# Developers can turn them on with '--debug'
|
|
||||||
show_official_27x_addons = bpy.app.debug
|
|
||||||
|
|
||||||
# collect the categories that can be filtered on
|
# collect the categories that can be filtered on
|
||||||
addons = [
|
addons = [
|
||||||
(mod, addon_utils.module_bl_info(mod))
|
(mod, addon_utils.module_bl_info(mod))
|
||||||
@@ -1949,15 +1944,6 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
|||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Skip 2.7x add-ons included with Blender, unless in debug mode.
|
|
||||||
is_addon_27x = info.get("blender", (0,)) < (2, 80)
|
|
||||||
if (
|
|
||||||
is_addon_27x and
|
|
||||||
(not show_official_27x_addons) and
|
|
||||||
(not mod.__file__.startswith(addon_user_dirs))
|
|
||||||
):
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Addon UI Code
|
# Addon UI Code
|
||||||
col_box = col.column()
|
col_box = col.column()
|
||||||
box = col_box.box()
|
box = col_box.box()
|
||||||
|
|||||||
Reference in New Issue
Block a user