Minor tweaks.
This commit is contained in:
parent
10439bd40a
commit
5b6e876c33
|
@ -292,7 +292,7 @@ int main(int argc, char* argv[]) {
|
||||||
std::string modelPath;
|
std::string modelPath;
|
||||||
const auto& suffix = FileUtils::GetFileSuffix(outputPath);
|
const auto& suffix = FileUtils::GetFileSuffix(outputPath);
|
||||||
|
|
||||||
// set to binary output to true if extension is glb
|
// Assume binary output if extension is glb
|
||||||
if (suffix.has_value() && suffix.value() == "glb") {
|
if (suffix.has_value() && suffix.value() == "glb") {
|
||||||
gltfOptions.outputBinary = true;
|
gltfOptions.outputBinary = true;
|
||||||
}
|
}
|
||||||
|
@ -305,9 +305,9 @@ int main(int argc, char* argv[]) {
|
||||||
modelPath = outputPath + ".glb";
|
modelPath = outputPath + ".glb";
|
||||||
}
|
}
|
||||||
// if the extension is gltf set the output folder to the parent directory
|
// if the extension is gltf set the output folder to the parent directory
|
||||||
} else if(suffix.has_value() && suffix.value() == "gltf") {
|
} else if (suffix.has_value() && suffix.value() == "gltf") {
|
||||||
modelPath = outputPath;
|
|
||||||
outputFolder = FileUtils::getFolder(outputPath) + "/";
|
outputFolder = FileUtils::getFolder(outputPath) + "/";
|
||||||
|
modelPath = outputPath;
|
||||||
} else {
|
} else {
|
||||||
// in gltf mode, we create a folder and write into that
|
// in gltf mode, we create a folder and write into that
|
||||||
outputFolder = fmt::format("{}_out/", outputPath.c_str());
|
outputFolder = fmt::format("{}_out/", outputPath.c_str());
|
||||||
|
|
Loading…
Reference in New Issue