[Bf-blender-cvs] [51791004ea8] master: Fix errors in user preferences after 2.8 hack removal

Dalai Felinto noreply at git.blender.org
Wed Dec 1 11:38:47 CET 2021


Commit: 51791004ea8b2589f7cf7bd68187b60951ad27ca
Author: Dalai Felinto
Date:   Wed Dec 1 11:24:55 2021 +0100
Branches: master
https://developer.blender.org/rB51791004ea8b2589f7cf7bd68187b60951ad27ca

Fix errors in user preferences after 2.8 hack removal

How to reproduce it:
* Open User Preferences.
* Got to Add-ons tab.

Issue introduced on d723e331f155

Reported via chat by Pedro Alcaide (povmaniac).

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

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 1d655cf3c19..4976834dd87 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -1966,13 +1966,7 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
                 sub.active = is_enabled
                 sub.label(text="%s: %s" % (info["category"], info["name"]))
 
-                # WARNING: 2.8x exception, may be removed
-                # use disabled state for old add-ons, chances are they are broken.
-                if is_addon_27x:
-                    sub.label(text="Upgrade to 2.8x required")
-                    sub.label(icon='ERROR')
-                # Remove code above after 2.8x migration is complete.
-                elif info["warning"]:
+                if info["warning"]:
                     sub.label(icon='ERROR')
 
                 # icon showing support level.



More information about the Bf-blender-cvs mailing list