Skip to content

Commit

Permalink
fix: eevee changes name to BLENDER_EEVEE_NEXT after 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xVanTuring committed Aug 3, 2024
1 parent 8293717 commit 691cf32
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions render/sublender_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,15 @@ async def render_graph(
get_sublender_library_render_dir("out#.png"),
"-E",
]
if self.engine == "cycles":
preview_cmd.append("CYCLES")

if self.engine == "eevee":
# if blender >= 4.2 use BLENDER_EEVEE_NEXT
if bpy.app.version >= (4, 2, 0):
preview_cmd.append("BLENDER_EEVEE_NEXT")
else:
preview_cmd.append("BLENDER_EEVEE")
else:
preview_cmd.append("BLENDER_EEVEE")
preview_cmd.append("CYCLES")
preview_cmd.append("-f")
preview_cmd.append("1")
await self.run_async(bpy.app.binary_path, preview_cmd)
Expand Down

0 comments on commit 691cf32

Please sign in to comment.