Skip to content

Commit

Permalink
feat: Force creation of output path with pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Feb 16, 2024
1 parent acdcd3c commit f8e77dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions DCL_PiXYZ/PXZEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions DCL_PiXYZ/PXZParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand All @@ -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;
Expand All @@ -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);
}

Expand Down

0 comments on commit f8e77dd

Please sign in to comment.