From f8e77dd5731f3d14a921ba54c8d3ac17da623c00 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Molteni Date: Fri, 16 Feb 2024 08:24:28 -0300 Subject: [PATCH] feat: Force creation of output path with pointer --- DCL_PiXYZ/PXZEntryPoint.cs | 1 + DCL_PiXYZ/PXZParams.cs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DCL_PiXYZ/PXZEntryPoint.cs b/DCL_PiXYZ/PXZEntryPoint.cs index eee19c23..ac443597 100644 --- a/DCL_PiXYZ/PXZEntryPoint.cs +++ b/DCL_PiXYZ/PXZEntryPoint.cs @@ -263,6 +263,7 @@ private static void CreateDirectories(SceneConversionInfo sceneConversionInfo) { Directory.CreateDirectory(PXYZConstants.RESOURCES_DIRECTORY); Directory.CreateDirectory(sceneConversionInfo.OutputDirectory); + Directory.CreateDirectory(Path.Combine(sceneConversionInfo.OutputDirectory, sceneConversionInfo.Scene)); } public static void WriteToFile(string message, string fileName) diff --git a/DCL_PiXYZ/PXZParams.cs b/DCL_PiXYZ/PXZParams.cs index f5ed8dc1..2f1d2af0 100644 --- a/DCL_PiXYZ/PXZParams.cs +++ b/DCL_PiXYZ/PXZParams.cs @@ -23,7 +23,7 @@ public struct SceneConversionInfo { public string SceneType { get; } public string ConversionType { get; } - public string Scenes { get; } + public string Scene { get; } public string DecimationType { get; } public string DecimationValues { get; } public string SceneManifestDirectory { get; } @@ -38,11 +38,11 @@ public struct SceneConversionInfo public WebRequestsHandler WebRequestsHandler; - public SceneConversionInfo(string decimationValues, string decimationType, string sceneType, string conversionType, string scenes, string outputPath, string defaultSceneLodManifestDirectory) + public SceneConversionInfo(string decimationValues, string decimationType, string sceneType, string conversionType, string scene, string outputPath, string defaultSceneLodManifestDirectory) { SceneType = sceneType; ConversionType = conversionType; - Scenes = scenes; + Scene = scene; DecimationType = decimationType; DecimationValues = decimationValues; SceneManifestDirectory = defaultSceneLodManifestDirectory; @@ -54,7 +54,7 @@ public SceneConversionInfo(string decimationValues, string decimationType, strin SceneImporter = null; WebRequestsHandler = new WebRequestsHandler(); - GetScenesToAnalyzeList(ConversionType, Scenes); + GetScenesToAnalyzeList(ConversionType, Scene); GetDecimationValues(DecimationType, DecimationValues); }