Fix terrain splatmap cache clearng

This commit is contained in:
Wojtek Figat
2024-09-22 10:40:10 +02:00
parent 9daddccbed
commit eb825f516e

View File

@@ -1220,8 +1220,8 @@ Color32* TerrainPatch::GetSplatMapData(int32 index)
void TerrainPatch::ClearSplatMapCache()
{
PROFILE_CPU_NAMED("Terrain.ClearSplatMapCache");
if (_cachedSplatMap)
_cachedSplatMap->Clear();
for (int32 i = 0; i < TERRAIN_MAX_SPLATMAPS_COUNT; i++)
_cachedSplatMap[i].Clear();
}
void TerrainPatch::ClearCache()