2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-27 23:12:06 +00:00

Updated missing image and colour only image asset names to use materials loaded by the game.

This commit is contained in:
LJW-Dev
2025-10-31 16:28:12 +08:00
parent 0fa473eadd
commit b054cfc990
2 changed files with 3 additions and 3 deletions

View File

@@ -101,8 +101,8 @@ namespace BSP
// These values are BSP linking constants that are required for the link to be successful // These values are BSP linking constants that are required for the link to be successful
namespace BSPLinkingConstants namespace BSPLinkingConstants
{ {
constexpr const char* MISSING_IMAGE_NAME = "missing_image"; constexpr const char* MISSING_IMAGE_NAME = ",mc/lambert1";
constexpr const char* COLOR_ONLY_IMAGE_NAME = "color_only_image"; constexpr const char* COLOR_ONLY_IMAGE_NAME = ",white";
constexpr const char* DEFAULT_SPAWN_POINT_STRING = R"({ constexpr const char* DEFAULT_SPAWN_POINT_STRING = R"({
"attackers": [ "attackers": [

View File

@@ -89,7 +89,7 @@ namespace BSP
surfMaterialAsset = m_context.LoadDependency<AssetMaterial>(missingImageName); surfMaterialAsset = m_context.LoadDependency<AssetMaterial>(missingImageName);
if (surfMaterialAsset == nullptr) if (surfMaterialAsset == nullptr)
{ {
con::error("unable to find the missing image texture!"); con::error("unable to load the missing image texture {}!", missingImageName);
return false; return false;
} }
} }