diff options
Diffstat (limited to 'server/replaytool/src/render.rs')
| -rw-r--r-- | server/replaytool/src/render.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/replaytool/src/render.rs b/server/replaytool/src/render.rs index 12e7d43c..96691e91 100644 --- a/server/replaytool/src/render.rs +++ b/server/replaytool/src/render.rs @@ -31,6 +31,9 @@ use tokio::{ pub struct RenderArgs { /// Replay file path input: PathBuf, + /// Camera replay file path + #[arg(short = 'c', long)] + camera: Option<PathBuf>, /// Output video file path passed to godot (must end in either .avi for MJPEG or .png for PNG sequence) output: PathBuf, #[arg(short = 'r', long, default_value = "30")] @@ -106,6 +109,10 @@ window/size/viewport_height={height} args.extend(["--fixed-fps", &fps]); args.push("--print-fps"); args.push("--"); + let camera_path = a.camera.map(|path| path.to_str().unwrap().to_string()); + if let Some(path) = &camera_path { + args.extend(["--replay-camera", path]); + } let uri = format!("ws://127.0.0.1:{port}"); args.push(&uri); |