Skip to content

Commit

Permalink
Video batch file fix (icosa-foundation#565)
Browse files Browse the repository at this point in the history
* Fixes the lack of .bat file when saving videos with  usd

* ffmpeg path was incorrect in the editor
  • Loading branch information
andybak authored Nov 23, 2023
1 parent ea1d49d commit 50dd4ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Scripts/Rendering/FfmpegPipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public static string GetFfmpegExe()
{
traverseToApp = "../../";
}
else if (Application.platform == RuntimePlatform.WindowsPlayer)
else if (Application.platform == RuntimePlatform.WindowsPlayer || Application.isEditor)
{
traverseToApp = "../";
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Rendering/VideoRecorderUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static public void StopVideoCapture(bool saveCapture)
/// has just been recorded.
static void CreateOfflineRenderBatchFile(string sketchFile, string usdaFile)
{
#if UNITY_STANDALONE_WINDOWS || UNITY_EDITOR_WINDOWS
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
string batFile = Path.ChangeExtension(usdaFile, ".HQ_Render.bat");
var pathSections = Application.dataPath.Split('/').ToArray();
var exePath = String.Join("/", pathSections.Take(pathSections.Length - 1).ToArray());
Expand Down

0 comments on commit 50dd4ea

Please sign in to comment.