From fd14af9ce922fcb482f5bc4174e3aa0b38a02581 Mon Sep 17 00:00:00 2001 From: Xiao Qi Date: Fri, 4 Nov 2022 14:57:24 +0800 Subject: [PATCH] Changed model file extension --- src/AssetMacros.h | 2 +- src/Libraries/MeshCompiler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AssetMacros.h b/src/AssetMacros.h index b44807a..7e72ee6 100644 --- a/src/AssetMacros.h +++ b/src/AssetMacros.h @@ -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" }; diff --git a/src/Libraries/MeshCompiler.cpp b/src/Libraries/MeshCompiler.cpp index f600e3d..35cf409 100644 --- a/src/Libraries/MeshCompiler.cpp +++ b/src/Libraries/MeshCompiler.cpp @@ -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())