Fix missing collision on terrain created in play mode
This commit is contained in:
@@ -953,8 +953,9 @@ bool TerrainPatch::SetupHeightMap(int32 heightMapLength, const float* heightMap,
|
||||
chunk._yHeight = chunkHeights[chunkIndex];
|
||||
chunk.UpdateTransform();
|
||||
}
|
||||
_terrain->UpdateBounds();
|
||||
UpdateCollision();
|
||||
_terrain->UpdateBounds();
|
||||
_terrain->UpdateLayerBits();
|
||||
|
||||
#if TERRAIN_UPDATING
|
||||
// Invalidate cache
|
||||
|
||||
Reference in New Issue
Block a user