From 7063185f9f3b98b45aee797506b960989068e24e Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 28 Nov 2021 14:47:17 -0800 Subject: [PATCH] Typo. --- src/gltf/TextureBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gltf/TextureBuilder.cpp b/src/gltf/TextureBuilder.cpp index e7d225c..e3ace2f 100644 --- a/src/gltf/TextureBuilder.cpp +++ b/src/gltf/TextureBuilder.cpp @@ -188,7 +188,7 @@ std::shared_ptr 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)) {