mkKdeDerivation: provide proper stdenv when asked for (#371444)
[NixPkgs.git] / pkgs / by-name / bl / blendfarm / rename-evee-to-eevee_next.patch
blob7b649a7a466144fbaf8bf07e6985f15251853ddb
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
6 ---
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
14 @@ -19,6 +19,7 @@
15 from multiprocessing import cpu_count
17 isPre3 = bpy.app.version < (3,0,0);
18 +isPreEeveeRename = bpy.app.version < (4, 2, 0);
20 if(isPre3):
21 print('Detected Blender >= 3.0.0\n');
22 @@ -218,8 +219,12 @@ def renderWithSettings(renderSettings, id, path):
23 scn.render.fps = fps;
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";
31 + else:
32 + print("Using EEVEE_NEXT");
33 + scn.render.engine = "BLENDER_EEVEE_NEXT";
34 else:
35 scn.render.engine = "CYCLES";