Skip to content

Commit

Permalink
[*] Fix ollad file generation path error
Browse files Browse the repository at this point in the history
  • Loading branch information
BasWalhout committed Jul 2, 2021
1 parent bedc3bb commit d5f4c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lumen_Engine/LumenPT/src/Tools/LumenPTModelConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ Lumen::SceneManager::GLTFResource LumenPTModelConverter::ConvertGLTF(std::string

volatile auto dbgfc = &content;

p.erase(p.begin() + p.find('.'), p.end());
std::string destPath = p.append(ms_ExtensionName);

std::string destPath = std::filesystem::path(p).replace_extension(ms_ExtensionName).string();

OutputToFile(header, content.m_Blob, destPath);

Expand Down

0 comments on commit d5f4c77

Please sign in to comment.