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:
parent
1cb99f5808
commit
d723e331f1
Notes:
blender-bot
2023-02-14 11:28:39 +01:00
Referenced by commit 51791004ea
, Fix errors in user preferences after 2.8 hack removal
|
@ -1868,11 +1868,6 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
|||
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
|
||||
addons = [
|
||||
(mod, addon_utils.module_bl_info(mod))
|
||||
|
@ -1949,15 +1944,6 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
|
|||
):
|
||||
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
|
||||
col_box = col.column()
|
||||
box = col_box.box()
|
||||
|
|
Loading…
Reference in New Issue