diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-06 09:02:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-06 09:04:28 +0300 |
commit | 3314d0bcb65d8c74cd0caccc4e10fb425da2154b (patch) | |
tree | 8bfee6d20096c98dab650ca5a0a981115f1f3612 /source/blender/blenloader | |
parent | 5b3545f99f2632b86e07dbe25343b46910be0483 (diff) |
Disable addons which haven't been updated
Gave noisy warnings on startup.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 19 |
1 files changed, 19 insertions, 0 deletions
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' */ { |