Browse Source

load mesh data and structure meshes

server-collision
FatBoy-DOTC 10 months ago
parent
commit
05e90d495f
  1. 7
      src/engine/gameManager/BuildingManager.java

7
src/engine/gameManager/BuildingManager.java

@ -995,8 +995,11 @@ public enum BuildingManager {
for (int mesh : meshes) { for (int mesh : meshes) {
if (!mesh_heights.containsKey(mesh) || !mesh_triangle_points.containsKey(mesh)) if (!mesh_heights.containsKey(mesh)) {
return; //no data for this mesh continue; //no data for this mesh
}
if(!mesh_triangle_points.containsKey(mesh))
continue;
Mesh generatedMesh = new Mesh(); Mesh generatedMesh = new Mesh();
generatedMesh.parentBuilding = building; generatedMesh.parentBuilding = building;

Loading…
Cancel
Save