diff --git a/UVAtlasTool/CmdLineHelpers.h b/UVAtlasTool/CmdLineHelpers.h index 1283c220..b3af3ee5 100644 --- a/UVAtlasTool/CmdLineHelpers.h +++ b/UVAtlasTool/CmdLineHelpers.h @@ -23,6 +23,10 @@ #include #include +#ifndef TOOL_VERSION +#error Define TOOL_VERSION before including this header +#endif + namespace Helpers { @@ -164,7 +168,7 @@ namespace Helpers if (!*version || wcscmp(version, L"1.0.0.0") == 0) { - swprintf_s(version, L"%03d (library)", UVATLAS_VERSION); + swprintf_s(version, L"%03d (library)", TOOL_VERSION); } if (versionOnly) diff --git a/UVAtlasTool/UVAtlas.cpp b/UVAtlasTool/UVAtlas.cpp index 97879b63..06fb6625 100644 --- a/UVAtlasTool/UVAtlas.cpp +++ b/UVAtlasTool/UVAtlas.cpp @@ -56,6 +56,8 @@ #include "DirectXTex.h" #include "Mesh.h" + +#define TOOL_VERSION UVATLAS_VERSION #include "CmdLineHelpers.h" //Uncomment to add support for OpenEXR (.exr)