Add automatic heightmap files removal on Editor shutdown for deleted terrains
#1902
This commit is contained in:
@@ -113,6 +113,11 @@ TerrainPatch::~TerrainPatch()
|
||||
#endif
|
||||
}
|
||||
|
||||
RawDataAsset* TerrainPatch::GetHeightfield() const
|
||||
{
|
||||
return _heightfield.Get();
|
||||
}
|
||||
|
||||
void TerrainPatch::RemoveLightmap()
|
||||
{
|
||||
for (auto& chunk : Chunks)
|
||||
|
||||
@@ -149,6 +149,12 @@ public:
|
||||
return GetChunk(z * Terrain::ChunksCountEdge + x);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the heightfield collision data asset.
|
||||
/// </summary>
|
||||
/// <returns>The heightfield data asset.</returns>
|
||||
API_PROPERTY() RawDataAsset* GetHeightfield() const;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the splatmap assigned to this patch.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user