Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 8, 2021
1 parent 99a22b5 commit d458111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions UVAtlasTool/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2271,10 +2271,10 @@ HRESULT Mesh::ExportToSDKMESH(const wchar_t* szFileName,
{
int result = WideCharToMultiByte(CP_UTF8, WC_NO_BEST_FIT_CHARS,
m0->texture.c_str(), -1,
m2->AlbetoTexture, MAX_TEXTURE_NAME, nullptr, FALSE);
m2->AlbedoTexture, MAX_TEXTURE_NAME, nullptr, FALSE);
if (!result)
{
*m2->AlbetoTexture = 0;
*m2->AlbedoTexture = 0;
}
}

Expand All @@ -2284,7 +2284,7 @@ HRESULT Mesh::ExportToSDKMESH(const wchar_t* szFileName,
char dir[MAX_PATH] = {};
char fname[_MAX_FNAME] = {};
char ext[_MAX_EXT] = {};
_splitpath_s(m2->AlbetoTexture, drive, dir, fname, ext);
_splitpath_s(m2->AlbedoTexture, drive, dir, fname, ext);

std::string basename = fname;
size_t pos = basename.find_last_of('_');
Expand Down
2 changes: 1 addition & 1 deletion UVAtlasTool/SDKMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ namespace DXUT

// PBR materials
char RMATexture[MAX_TEXTURE_NAME];
char AlbetoTexture[MAX_TEXTURE_NAME];
char AlbedoTexture[MAX_TEXTURE_NAME];
char NormalTexture[MAX_TEXTURE_NAME];
char EmissiveTexture[MAX_TEXTURE_NAME];

Expand Down

0 comments on commit d458111

Please sign in to comment.