load mesh data and structure meshes
This commit is contained in:
@@ -868,7 +868,9 @@ public class dbBuildingHandler extends dbHandlerBase {
|
|||||||
}
|
}
|
||||||
else
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -989,7 +989,10 @@ public enum BuildingManager {
|
|||||||
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);
|
||||||
|
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) {
|
for (int mesh : meshes) {
|
||||||
|
|
||||||
if (!mesh_heights.containsKey(mesh) || !mesh_triangle_points.containsKey(mesh))
|
if (!mesh_heights.containsKey(mesh) || !mesh_triangle_points.containsKey(mesh))
|
||||||
|
|||||||
Reference in New Issue
Block a user