1 From 6276136de0fc567d3a2cc2ecff6effc27688d1a4 Mon Sep 17 00:00:00 2001
2 From: Lyze <11274700+lyze237@users.noreply.github.com>
3 Date: Fri, 20 Sep 2024 20:04:13 +0200
4 Subject: [PATCH] Fix eevee getting renamed to eevee_next
7 LogicReinc.BlendFarm.Server/render.py | 9 +++++++--
8 1 file changed, 7 insertions(+), 2 deletions(-)
10 diff --git a/LogicReinc.BlendFarm.Server/render.py b/LogicReinc.BlendFarm.Server/render.py
11 index dcff178..f0cf304 100644
12 --- a/LogicReinc.BlendFarm.Server/render.py
13 +++ b/LogicReinc.BlendFarm.Server/render.py
15 from multiprocessing import cpu_count
17 isPre3 = bpy.app.version < (3,0,0);
18 +isPreEeveeRename = bpy.app.version < (4, 2, 0);
21 print('Detected Blender >= 3.0.0\n');
22 @@ -218,8 +219,12 @@ def renderWithSettings(renderSettings, id, path):
25 if(engine == 1): #Eevee
26 - print("Using EEVEE");
27 - scn.render.engine = "BLENDER_EEVEE";
28 + if(isPreEeveeRename):
29 + print("Using EEVEE");
30 + scn.render.engine = "BLENDER_EEVEE";
32 + print("Using EEVEE_NEXT");
33 + scn.render.engine = "BLENDER_EEVEE_NEXT";
35 scn.render.engine = "CYCLES";