[Bf-blender-cvs] [3314d0bcb65] blender2.8: Disable addons which haven't been updated
Campbell Barton
noreply at git.blender.org
Fri Jul 6 08:04:45 CEST 2018
Commit: 3314d0bcb65d8c74cd0caccc4e10fb425da2154b
Author: Campbell Barton
Date: Fri Jul 6 08:02:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3314d0bcb65d8c74cd0caccc4e10fb425da2154b
Disable addons which haven't been updated
Gave noisy warnings on startup.
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
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' */
{
More information about the Bf-blender-cvs
mailing list