Add-ons: disable 3ds add-on in all existing preferences.

Silences warning when running with --debug. If/when this add-on is ported,
users that need it can enable it again.
This commit is contained in:
2019-03-18 11:00:15 +01:00
parent 76277e7402
commit 66932a2c81
3 changed files with 6 additions and 6 deletions

View File

@@ -80,11 +80,6 @@ void BLO_update_defaults_userpref_blend(void)
MEM_freeN(addon->prop);
addon->prop = NULL;
}
if (STREQ(addon->module, "io_scene_3ds")) {
BLI_remlink(&U.addons, addon);
MEM_freeN(addon);
}
}
/* Transform tweak with single click and drag. */

View File

@@ -476,6 +476,11 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef)
GP_PAINT_UNUSED_0);
}
if (!USER_VERSION_ATLEAST(280, 50)) {
/* 3ds is no longer enabled by default and not ported yet. */
BKE_addon_remove_safe(&userdef->addons, "io_scene_3ds");
}
/**
* Include next version bump.
*/