Changed model file extension

This commit is contained in:
Xiao Qi 2022-11-04 14:57:24 +08:00
parent 672b2dd92c
commit fd14af9ce9
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ constexpr std::string_view BUILT_IN_ASSET_ROOT{ "../../Built_In" };
// ASSET EXTENSIONS
constexpr std::string_view TEXTURE_EXTENSION {".shtex"};
constexpr std::string_view MESH_EXTENSION {".shmesh"};
constexpr std::string_view MODEL_EXTENSION {".shmodel"};
// EXTERNAL EXTENSIONS
constexpr std::string_view FBX_EXTENSION{ ".fbx" };

View File

@ -203,7 +203,7 @@ namespace SH_COMP
void MeshCompiler::CompileMeshBinary(AssetPath path, MeshAsset const& asset) noexcept
{
std::string newPath{ path.string().substr(0, path.string().find_last_of('.')) };
newPath += MESH_EXTENSION;
newPath += MODEL_EXTENSION;
std::ofstream file{ newPath, std::ios::out | std::ios::binary | std::ios::trunc };
if (!file.is_open())