Addons: silence warnings instead of disabling
This commit is contained in:
@@ -353,6 +353,20 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non
|
||||
|
||||
# 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.
|
||||
|
||||
# Silent default, we know these need updating.
|
||||
if module_name in {
|
||||
"io_anim_bvh",
|
||||
"io_mesh_ply",
|
||||
"io_mesh_stl",
|
||||
"io_mesh_uv_layout",
|
||||
"io_scene_3ds",
|
||||
"io_scene_fbx",
|
||||
"io_scene_obj",
|
||||
"io_scene_x3d",
|
||||
}:
|
||||
return None
|
||||
|
||||
try:
|
||||
print(mod.bl_info.get("blender", (0, 0, 0)))
|
||||
if mod.bl_info.get("blender", (0, 0, 0)) < (2, 80, 0):
|
||||
|
||||
Reference in New Issue
Block a user