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
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-05-12 14:36:35 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-05-12 14:54:48 +0300
commit56859ae7fd810db0e7409dafb72f26f8bef0e5ae (patch)
treeb37702c797b08faea9b4ed50f378503a069068dc /source/blender/blenloader
parent3a5501d168d75f0611e82ac7ba03d8a723a77a9f (diff)
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c3
1 files changed, 3 insertions, 0 deletions
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;