Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-02-12 09:56:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-02-12 09:56:14 +0300
commit657396be08b75b6d433e0789910b787f34f28c72 (patch)
treeaaf59029c2ac57317b7d1228bce26ac84ffa062c /source
parent53431a560e51d106e78de00f7faef5bfccc8e933 (diff)
Error in last commit, disable cycles when not enabled
Would only disable when loading old preferences.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/resources.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index 54834fc75ed..ac4892de042 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -2148,18 +2148,8 @@ void init_userdef_do_versions(void)
rgba_char_args_set(btheme->tipo.handle_sel_auto_clamped, 0xf0, 0xaf, 0x90, 255);
}
-#ifdef WITH_CYCLES
/* enable (Cycles) addon by default */
BKE_addon_ensure(&U.addons, "cycles");
-#else
- {
- bAddon *addon = BLI_findstring(&U.addons, "cycles", offsetof(bAddon, module));
- if (addon) {
- BKE_addon_free(addon);
- BLI_remlink(&U.addons, addon);
- }
- }
-#endif
}
if (!USER_VERSION_ATLEAST(260, 5)) {
@@ -2804,6 +2794,15 @@ void init_userdef_do_versions(void)
U.audiodevice = 0;
#endif
+ /* Not versioning, just avoid errors. */
+#ifndef WITH_CYCLES
+ bAddon *addon = BLI_findstring(&U.addons, "cycles", offsetof(bAddon, module));
+ if (addon) {
+ BLI_remlink(&U.addons, addon);
+ BKE_addon_free(addon);
+ }
+#endif
+
/* funny name, but it is GE stuff, moves userdef stuff to engine */
// XXX space_set_commmandline_options();
/* this timer uses U */