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
+2 -1
View File
@@ -21,7 +21,8 @@ namespace
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{
// custom maps must have a map_gfx file
auto mapGfxFile = m_search_path.Open(BSPUtil::getFileNameForBSPAsset("map_gfx.fbx"));
std::string mapGfxFileName = "map_gfx.fbx";
auto mapGfxFile = m_search_path.Open(BSPUtil::getFileNameForBSPAsset(mapGfxFileName));
if (!mapGfxFile.IsOpen())
return AssetCreationResult::NoAction();