One more path fix so directory is always created if textures are present
This commit is contained in:
parent
025590f54b
commit
9df4bf6068
@ -1472,10 +1472,11 @@ namespace Toolbox
|
|||||||
SearchArchive(settings, (IArchiveFile)fileFormat, extension, outputFolder, exportMode);
|
SearchArchive(settings, (IArchiveFile)fileFormat, extension, outputFolder, exportMode);
|
||||||
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
|
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
|
||||||
{
|
{
|
||||||
if (settings.SeperateTextureContainers && ((ITextureContainer)fileFormat).TextureList.Count > 0)
|
string name = fileFormat.FileName.Split('.').FirstOrDefault();
|
||||||
|
outputFolder = Path.Combine(outputFolder, name);
|
||||||
|
|
||||||
|
if (((ITextureContainer)fileFormat).TextureList.Count > 0)
|
||||||
{
|
{
|
||||||
string name = fileFormat.FileName.Split('.').FirstOrDefault();
|
|
||||||
outputFolder = Path.Combine(outputFolder, name);
|
|
||||||
if (!Directory.Exists(outputFolder))
|
if (!Directory.Exists(outputFolder))
|
||||||
Directory.CreateDirectory(outputFolder);
|
Directory.CreateDirectory(outputFolder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user