PyAPI: remove checks for add-ons pre 2.8x

This made sense when migrating from 2.7x, now 2.8x add-ons may also
have issues in 4.1 so this check isn't so relevant.
This commit is contained in:
Campbell Barton
2024-01-25 12:58:00 +11:00
parent b8b1189bc4
commit 6aede44fb7
3 changed files with 0 additions and 16 deletions

View File

@@ -408,14 +408,6 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non
_addon_remove(module_name)
return None
# 1.1) Fail when add-on is too old.
# This is a temporary 2.8x migration check, so we can manage addons that are supported.
if mod.bl_info.get("blender", (0, 0, 0)) < (2, 80, 0):
if _bpy.app.debug:
print("Warning: Add-on '%s' was not upgraded for 2.80, ignoring" % module_name)
return None
# 2) Try register collected modules.
# Removed register_module, addons need to handle their own registration now.