Simple Blender Render: remove blender_cmd setting

Remove the `blender_cmd` setting, and just hard-code it to `{blender}`.
The Blender add-on was already passing this string, and it's very unlikely
that people are already writing custom add-ons to pass something different.
It provided flexibility that was untested, so it's better to simplify
things.
This commit is contained in:
Sybren A. Stüvel 2022-08-31 16:24:34 +02:00
parent 25dd7b214b
commit eb89984db8

View File

@ -19,7 +19,6 @@ const JOB_TYPE = {
description: "Final file path of where render output will be saved"}, description: "Final file path of where render output will be saved"},
// Automatically evaluated settings: // Automatically evaluated settings:
{ key: "blender_cmd", type: "string", default: "{blender}", visible: "hidden" },
{ key: "blendfile", type: "string", required: true, description: "Path of the Blend file to render", visible: "web" }, { key: "blendfile", type: "string", required: true, description: "Path of the Blend file to render", visible: "web" },
{ key: "fps", type: "float", eval: "C.scene.render.fps / C.scene.render.fps_base", visible: "hidden" }, { key: "fps", type: "float", eval: "C.scene.render.fps / C.scene.render.fps_base", visible: "hidden" },
{ {
@ -120,7 +119,7 @@ function authorRenderTasks(settings, renderDir, renderOutput) {
for (let chunk of chunks) { for (let chunk of chunks) {
const task = author.Task(`render-${chunk}`, "blender"); const task = author.Task(`render-${chunk}`, "blender");
const command = author.Command("blender-render", { const command = author.Command("blender-render", {
exe: settings.blender_cmd, exe: "{blender}",
exeArgs: "{blenderArgs}", exeArgs: "{blenderArgs}",
argsBefore: [], argsBefore: [],
blendfile: settings.blendfile, blendfile: settings.blendfile,