Skip to content

Commit

Permalink
Fix EnvMap destination paths
Browse files Browse the repository at this point in the history
  • Loading branch information
iMrShadow committed Mar 20, 2024
1 parent 5776056 commit 5abc9ab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,9 @@ public void Write_D3DTX_AsDDS(D3DTX_Master d3dtx, string destinationDirectory)
int mipCount = (int)d3dtx.GetMipMapCount();
int cubeSurfacesAmount = regionCount / mipCount;

string newCubeDirectory = destinationDirectory + +Path.DirectorySeparatorChar + fileName +
+Path.DirectorySeparatorChar;
string newCubeDirectory = destinationDirectory + Path.DirectorySeparatorChar + fileName + Path.DirectorySeparatorChar;

if (Directory.Exists(newCubeDirectory) == false)
if (!Directory.Exists(newCubeDirectory))
{
Directory.CreateDirectory(newCubeDirectory);
}
Expand Down

0 comments on commit 5abc9ab

Please # to comment.