mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-07-03 17:51:54 +00:00
chore: remove hashIndex from t6 json material as it is always 0
This commit is contained in:
@ -509,7 +509,6 @@ namespace GAME
|
||||
uint8_t maxStreamedMips;
|
||||
#elif defined(FEATURE_T6)
|
||||
unsigned layeredSurfaceTypes;
|
||||
unsigned hashIndex;
|
||||
unsigned surfaceFlags;
|
||||
unsigned contents;
|
||||
uint8_t probeMipBits;
|
||||
@ -534,7 +533,6 @@ namespace GAME
|
||||
maxStreamedMips,
|
||||
#elif defined(FEATURE_T6)
|
||||
layeredSurfaceTypes,
|
||||
hashIndex,
|
||||
surfaceFlags,
|
||||
contents,
|
||||
probeMipBits,
|
||||
|
@ -420,7 +420,6 @@ namespace
|
||||
material.info.surfaceTypeBits = jMaterial.surfaceTypeBits;
|
||||
#ifdef FEATURE_T6
|
||||
material.info.layeredSurfaceTypes = jMaterial.layeredSurfaceTypes;
|
||||
material.info.hashIndex = static_cast<uint16_t>(jMaterial.hashIndex);
|
||||
material.info.surfaceFlags = jMaterial.surfaceFlags;
|
||||
material.info.contents = jMaterial.contents;
|
||||
#endif
|
||||
|
@ -30,5 +30,6 @@ void AssetDumperMaterial::DumpAsset(AssetDumpingContext& context, XAssetInfo<Mat
|
||||
|
||||
const auto* material = asset->Asset();
|
||||
assert(material->info.gameFlags < 0x8000);
|
||||
assert(material->info.hashIndex == 0);
|
||||
DumpMaterialAsJson(*assetFile, *material, context);
|
||||
}
|
||||
|
@ -315,7 +315,6 @@ namespace
|
||||
jMaterial.surfaceTypeBits = material.info.surfaceTypeBits;
|
||||
#ifdef FEATURE_T6
|
||||
jMaterial.layeredSurfaceTypes = material.info.layeredSurfaceTypes;
|
||||
jMaterial.hashIndex = material.info.hashIndex;
|
||||
jMaterial.surfaceFlags = material.info.surfaceFlags;
|
||||
jMaterial.contents = material.info.contents;
|
||||
#endif
|
||||
|
@ -62,7 +62,6 @@ namespace
|
||||
"10",
|
||||
"CASTS_SHADOW"
|
||||
],
|
||||
"hashIndex": 0,
|
||||
"layeredSurfaceTypes": 536870925,
|
||||
"probeMipBits": 0,
|
||||
"sortKey": 4,
|
||||
|
@ -282,7 +282,6 @@ namespace
|
||||
"10",
|
||||
"CASTS_SHADOW"
|
||||
],
|
||||
"hashIndex": 0,
|
||||
"layeredSurfaceTypes": 536870925,
|
||||
"probeMipBits": 0,
|
||||
"sortKey": 4,
|
||||
|
Reference in New Issue
Block a user