Disable addons which haven't been updated

Gave noisy warnings on startup.
This commit is contained in:
Campbell Barton
2018-07-06 08:02:20 +02:00
parent 5b3545f99f
commit 3314d0bcb6

View File

@@ -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' */
{