|
|
@ -982,7 +982,7 @@ public enum BuildingManager { |
|
|
|
if (building == null) |
|
|
|
if (building == null) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
building.buildingMeshes = new ArrayList<>(); |
|
|
|
building.buildingTriangles = 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); |
|
|
|
if (!prop_meshes.containsKey(building.meshUUID)) |
|
|
|
if (!prop_meshes.containsKey(building.meshUUID)) |
|
|
@ -1040,9 +1040,10 @@ public enum BuildingManager { |
|
|
|
tri.sides.add(new Line2D.Float(p1, p2)); |
|
|
|
tri.sides.add(new Line2D.Float(p1, p2)); |
|
|
|
tri.sides.add(new Line2D.Float(p2, p3)); |
|
|
|
tri.sides.add(new Line2D.Float(p2, p3)); |
|
|
|
tri.sides.add(new Line2D.Float(p3, p1)); |
|
|
|
tri.sides.add(new Line2D.Float(p3, p1)); |
|
|
|
generatedMesh.triangles.add(tri); |
|
|
|
//generatedMesh.triangles.add(tri);
|
|
|
|
|
|
|
|
building.buildingTriangles.add(tri); |
|
|
|
} |
|
|
|
} |
|
|
|
building.buildingMeshes.add(generatedMesh); |
|
|
|
//building.buildingTriangles.add(generatedMesh);
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch(Exception e){ |
|
|
|
catch(Exception e){ |
|
|
|