2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

Refactored clipmap generation, further refactored other files to better use c++

This commit is contained in:
LJW-Dev
2025-10-27 19:07:21 +08:00
committed by Jan Laupetin
parent 014fe103ac
commit af3284ab22
11 changed files with 338 additions and 421 deletions
+4 -2
View File
@@ -193,7 +193,8 @@ namespace BSP
{
std::unique_ptr<BSPData> createBSPData(std::string& mapName, ISearchPath& searchPath)
{
std::string gfxFbxPath = BSPUtil::getFileNameForBSPAsset("map_gfx.fbx");
std::string gfxFbxFileName = "map_gfx.fbx";
std::string gfxFbxPath = BSPUtil::getFileNameForBSPAsset(gfxFbxFileName);
auto gfxFile = searchPath.Open(gfxFbxPath);
if (!gfxFile.IsOpen())
{
@@ -222,7 +223,8 @@ namespace BSP
}
ufbx_scene* colScene;
std::string colFbxPath = BSPUtil::getFileNameForBSPAsset("map_col.fbx");
std::string colFbxFileName = "map_col.fbx";
std::string colFbxPath = BSPUtil::getFileNameForBSPAsset(colFbxFileName);
auto colFile = searchPath.Open(colFbxPath);
if (!colFile.IsOpen())
{