[Bf-blender-cvs] [56859ae7fd8] blender2.8: Startup.blend: set EEVEE as the default engine

Dalai Felinto noreply at git.blender.org
Fri May 12 13:54:59 CEST 2017


Commit: 56859ae7fd810db0e7409dafb72f26f8bef0e5ae
Author: Dalai Felinto
Date:   Fri May 12 13:36:35 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB56859ae7fd810db0e7409dafb72f26f8bef0e5ae

Startup.blend: set EEVEE as the default engine

The original idea was to use Clay as the default. But since clay may not
even be in the final release, we can't afford to have a startup.blend
that doesn't deliver a reliable result regardless of build options.

===================================================================

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 e34f12b1cf9..a38f122ec56 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -28,6 +28,7 @@
 #include "BLI_utildefines.h"
 #include "BLI_listbase.h"
 #include "BLI_math.h"
+#include "BLI_string.h"
 
 #include "DNA_brush_types.h"
 #include "DNA_freestyle_types.h"
@@ -88,6 +89,8 @@ void BLO_update_defaults_userpref_blend(void)
 void BLO_update_defaults_startup_blend(Main *bmain)
 {
 	for (Scene *scene = bmain->scene.first; scene; scene = scene->id.next) {
+		BLI_strncpy(scene->r.engine, RE_engine_id_BLENDER_EEVEE, sizeof(scene->r.engine));
+
 		scene->r.im_format.planes = R_IMF_PLANES_RGBA;
 		scene->r.im_format.compress = 15;




More information about the Bf-blender-cvs mailing list