[Bf-blender-cvs] [d723e331f15] master: Cleanup: Remove hack to hide pre 2.8 addons in the user preferences

Aaron Carlisle noreply at git.blender.org
Wed Dec 1 04:56:23 CET 2021


Commit: d723e331f155871fa5c2771aaa634aea0193d2b1
Author: Aaron Carlisle
Date:   Tue Nov 30 22:53:26 2021 -0500
Branches: master
https://developer.blender.org/rBd723e331f155871fa5c2771aaa634aea0193d2b1

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

===================================================================

M	release/scripts/startup/bl_ui/space_userpref.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 92d1e8e2586..1d655cf3c19 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -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()



More information about the Bf-blender-cvs mailing list