Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 17, 2024
1 parent 729755c commit 3c3ee1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UVAtlasTool/CmdLineHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
#include <set>
#include <string>

#ifndef TOOL_VERSION
#error Define TOOL_VERSION before including this header
#endif


namespace Helpers
{
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions UVAtlasTool/UVAtlas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c3ee1d

Please sign in to comment.