Start tracking and using FBX2glTF version.

This commit is contained in:
Par Winzell 2018-05-03 18:51:35 -07:00
parent 3c8cad4730
commit e178a75be3
3 changed files with 6 additions and 7 deletions

View File

@ -18,6 +18,8 @@
#include <Windows.h>
#endif
const std::string FBX2GLTF_VERSION = "0.9.5";
#include <fmt/printf.h>
#include <fbxsdk.h>

View File

@ -1077,7 +1077,7 @@ ModelData *Raw2Gltf(
json glTFJson {
{ "asset", {
{ "generator", "FBX2glTF" },
{ "generator", "FBX2glTF v" + FBX2GLTF_VERSION },
{ "version", "2.0" }}},
{ "scene", rootScene.ix }
};

View File

@ -34,7 +34,8 @@ int main(int argc, char *argv[])
{
cxxopts::Options options(
"FBX2glTF",
"FBX2glTF 2.0: Generate a glTF 2.0 representation of an FBX model.");
fmt::sprintf("FBX2glTF %s: Generate a glTF 2.0 representation of an FBX model.", FBX2GLTF_VERSION)
);
std::string inputPath;
std::string outputPath;
@ -98,11 +99,7 @@ int main(int argc, char *argv[])
}
if (options.count("version")) {
fmt::printf(
R"(
FBX2glTF version 2.0
Copyright (c) 2016-2017 Oculus VR, LLC.
)");
fmt::printf("FBX2glTF version %s\nCopyright (c) 2016-2017 Oculus VR, LLC.\n", FBX2GLTF_VERSION);
return 0;
}