From 3314d0bcb65d8c74cd0caccc4e10fb425da2154b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Jul 2018 08:02:20 +0200 Subject: Disable addons which haven't been updated Gave noisy warnings on startup. --- .../blender/blenloader/intern/versioning_defaults.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 860d1432370..e4b1ccd1d2b 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -44,6 +44,7 @@ #include "DNA_object_types.h" #include "DNA_workspace_types.h" +#include "BKE_addon.h" #include "BKE_brush.h" #include "BKE_library.h" #include "BKE_main.h" @@ -95,6 +96,24 @@ void BLO_update_defaults_userpref_blend(void) U.flag &= ~USER_SCRIPT_AUTOEXEC_DISABLE; #endif + /* XXX, until these are working w/ 2.8x. */ + { + const char *addon_id_remove[] = { + "io_anim_bvh", + "io_curve_svg", + "io_mesh_ply", + "io_mesh_stl", + "io_mesh_uv_layout", + "io_scene_3ds", + "io_scene_fbx", + "io_scene_obj", + "io_scene_x3d", + }; + for (int i = 0; i < ARRAY_SIZE(addon_id_remove); i++) { + BKE_addon_remove_safe(&U.addons, addon_id_remove[i]); + } + } + /* Ignore the theme saved in the blend file, * instead use the theme from 'userdef_default_theme.c' */ { -- cgit v1.2.3