Browse Source

load mesh data and structure meshes

server-collision
FatBoy-DOTC 12 months ago
parent
commit
6215e15e82
  1. 5
      src/engine/gameManager/BuildingManager.java

5
src/engine/gameManager/BuildingManager.java

@ -985,13 +985,10 @@ public enum BuildingManager {
building.buildingMeshes = new ArrayList<>(); building.buildingMeshes = new ArrayList<>();
float rotation = building.getRot().getRotation(); float rotation = building.getRot().getRotation();
Vector3f buildingLoc = new Vector3f(building.loc.x, building.loc.y, building.loc.z); Vector3f buildingLoc = new Vector3f(building.loc.x, building.loc.y, building.loc.z);
int buildingMeshUUID = building.meshUUID;
int blueprintMeshUUID = building.getBlueprint().getMeshForRank(building.rank);
if(prop_meshes.containsKey(building.meshUUID) == false) if(prop_meshes.containsKey(building.meshUUID) == false)
return;//no meshes to load for this prop return;//no meshes to load for this prop
//ArrayList<Integer> meshes = prop_meshes.get(building.meshUUID); ArrayList<Integer> meshes = prop_meshes.get(building.meshUUID);
ArrayList<Integer> meshes = prop_meshes.get(building.getBlueprint().getMeshForRank(building.rank));
for (int mesh : meshes) { for (int mesh : meshes) {

Loading…
Cancel
Save