Update the bottom level accel structure if vertices or indexes change

This commit is contained in:
dpjudas 2024-08-11 23:03:32 +02:00
commit b6cbaaedbc
4 changed files with 26 additions and 49 deletions

View file

@ -165,7 +165,6 @@ DoomLevelMesh::DoomLevelMesh(FLevelLocals& doomMap)
SortIndexes();
BuildTileSurfaceLists();
Mesh.DynamicIndexStart = Mesh.Indexes.size();
UpdateCollision();
// Assume double the size of the static mesh will be enough for anything dynamic.