Fixed: -o option of tga2dds for directory output

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 1ca826cda9
commit 5892fb8c1c

@ -390,7 +390,7 @@ int main(int argc, char **argv)
// if OptOutputFileName is a directory, append the original filename // if OptOutputFileName is a directory, append the original filename
if (CFile::isDirectory(OptOutputFileName)) if (CFile::isDirectory(OptOutputFileName))
{ {
outputFileName = CPath::standardizePath(outputFileName) + getOutputFileName(inputFileName); outputFileName = CPath::standardizePath(OptOutputFileName) + CFile::getFilename(getOutputFileName(inputFileName));
} }
else else
{ {

Loading…
Cancel
Save