Changed model file extension
This commit is contained in:
parent
672b2dd92c
commit
fd14af9ce9
|
@ -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" };
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue