Fix crash with terrain in prefab window

#689
This commit is contained in:
Wojtek Figat
2022-02-19 17:59:40 +01:00
parent 4424d93d56
commit 111a2f3b25

View File

@@ -559,6 +559,12 @@ void Terrain::Draw(RenderContext& renderContext)
void Terrain::DrawGeneric(RenderContext& renderContext)
{
// Prevent issues if no BeginPlay was called
if (!IsDuringPlay())
{
CacheNeighbors();
}
Draw(renderContext);
}