From 6215e15e821ad8eb764d3e29b2aa1451bd06703e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 15 Jan 2024 19:15:41 -0600 Subject: [PATCH] load mesh data and structure meshes --- src/engine/gameManager/BuildingManager.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 3e3c3593..318ae411 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -985,13 +985,10 @@ public enum BuildingManager { building.buildingMeshes = new ArrayList<>(); float rotation = building.getRot().getRotation(); 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) return;//no meshes to load for this prop - //ArrayList meshes = prop_meshes.get(building.meshUUID); - ArrayList meshes = prop_meshes.get(building.getBlueprint().getMeshForRank(building.rank)); + ArrayList meshes = prop_meshes.get(building.meshUUID); for (int mesh : meshes) {