Worker: check BLENDER_CMD environment variable (for multi-GPU Eevee rendering) #104193
@ -6,6 +6,7 @@ package worker
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"regexp"
|
"regexp"
|
||||||
"sync"
|
"sync"
|
||||||
@ -88,7 +89,8 @@ func (ce *CommandExecutor) cmdBlenderRenderCommand(
|
|||||||
// No directory path given. Check that the executable is set in an
|
// No directory path given. Check that the executable is set in an
|
||||||
// environment variable or can be found on the path.
|
// environment variable or can be found on the path.
|
||||||
if path := find_blender.EnvironmentVariable(); path != "" {
|
if path := find_blender.EnvironmentVariable(); path != "" {
|
||||||
logger.Info().Str("path", path).Msg("found Blender in environment")
|
msg := fmt.Sprintf("using blender from %s", find_blender.BlenderPathEnvVariable)
|
||||||
|
logger.Info().Str("path", path).Msg(msg)
|
||||||
parameters.exe = path
|
parameters.exe = path
|
||||||
} else if _, err := exec.LookPath(parameters.exe); err != nil {
|
} else if _, err := exec.LookPath(parameters.exe); err != nil {
|
||||||
// Attempt a platform-specific way to find which Blender executable to
|
// Attempt a platform-specific way to find which Blender executable to
|
||||||
|
Loading…
Reference in New Issue
Block a user