load mesh data and structure meshes

This commit is contained in:
2024-01-15 18:57:18 -06:00
parent 561170eb44
commit 90b516bbb9
2 changed files with 7 additions and 2 deletions
@@ -868,7 +868,9 @@ public class dbBuildingHandler extends dbHandlerBase {
}
else
{
BuildingManager.prop_meshes.get(rs.getInt("propID")).add(rs.getInt("meshID"));
ArrayList<Integer> meshes = BuildingManager.prop_meshes.get(rs.getInt("propID"));
meshes.add(rs.getInt("meshID"));
//BuildingManager.prop_meshes.get(rs.getInt("propID")).add(rs.getInt("meshID"));
}
}
+4 -1
View File
@@ -989,7 +989,10 @@ public enum BuildingManager {
if(prop_meshes.containsKey(building.meshUUID) == false)
return;//no meshes to load for this prop
ArrayList<Integer> meshes = prop_meshes.get(building.meshUUID);
//ArrayList<Integer> meshes = prop_meshes.get(building.meshUUID);
int buildingMeshUUID = building.meshUUID;
int blueprintMeshUUID = building.getBlueprint().getMeshForRank(building.rank);
ArrayList<Integer> meshes = prop_meshes.get(building.getBlueprint().getMeshForRank(building.rank));
for (int mesh : meshes) {
if (!mesh_heights.containsKey(mesh) || !mesh_triangle_points.containsKey(mesh))