Remove xvfb-run dependency from rendering process
All checks were successful
Release Tag / release (push) Successful in 16s
All checks were successful
Release Tag / release (push) Successful in 16s
- Eliminated the use of xvfb-run for headless rendering in the RenderProcessor, simplifying the command execution for Blender. - Updated the CheckRequiredTools function to remove the check for xvfb-run, reflecting the change in rendering requirements.
This commit is contained in:
@@ -68,10 +68,6 @@ func (r *Runner) CheckRequiredTools() error {
|
|||||||
}
|
}
|
||||||
log.Printf("Found zstd for compressed blend file support")
|
log.Printf("Found zstd for compressed blend file support")
|
||||||
|
|
||||||
if err := exec.Command("xvfb-run", "--help").Run(); err != nil {
|
|
||||||
return fmt.Errorf("xvfb-run not found - required for headless Blender rendering. Install with: apt install xvfb")
|
|
||||||
}
|
|
||||||
log.Printf("Found xvfb-run for headless rendering without -b option")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,10 +175,7 @@ func (p *RenderProcessor) runBlender(ctx *Context, blenderBinary, blendFile, out
|
|||||||
args = append(args, "-f", fmt.Sprintf("%d", ctx.Frame))
|
args = append(args, "-f", fmt.Sprintf("%d", ctx.Frame))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrap with xvfb-run
|
cmd := exec.Command(blenderBinary, args...)
|
||||||
xvfbArgs := []string{"-a", "-s", "-screen 0 800x600x24", blenderBinary}
|
|
||||||
xvfbArgs = append(xvfbArgs, args...)
|
|
||||||
cmd := exec.Command("xvfb-run", xvfbArgs...)
|
|
||||||
cmd.Dir = ctx.WorkDir
|
cmd.Dir = ctx.WorkDir
|
||||||
|
|
||||||
// Set up environment with custom HOME directory
|
// Set up environment with custom HOME directory
|
||||||
|
|||||||
Reference in New Issue
Block a user