This commit is contained in:
K. S. Ernest (iFire) Lee 2021-11-28 14:47:17 -08:00
parent 401bcccc77
commit 7063185f9f
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ std::shared_ptr<TextureData> TextureBuilder::simple(int rawTexIndex, const std::
if (options.keepOriginals && !relativeFilename.empty()) {
image = new ImageData(textureName, relativeFilename);
} else if (options.keepOriginals && relativeFilename.empty()) {
std::string inputPathBase = FileUtils::GetFileBase(gltfOptions.inputPath);
std::string inputPathBase = FileUtils::GetFileBase(options.inputPath);
std::string outputPath = inputPathBase + "/textures/" + textureName;
image = new ImageData(textureName, outputPath);
if (FileUtils::CopyFile(rawTexture.fileLocation, outputPath, true)) {