From 561170eb44b8c6f39d2a23383106547c0d9429da Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 14 Jan 2024 19:36:54 -0600 Subject: [PATCH] load mesh data and structure meshes --- src/engine/gameManager/BuildingManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index bb971a92..595be009 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -985,8 +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); - if (!mesh_triangle_points.containsKey(building.meshUUID)) - return; //no data for this prop ID + + if(prop_meshes.containsKey(building.meshUUID) == false) + return;//no meshes to load for this prop + ArrayList meshes = prop_meshes.get(building.meshUUID); for (int mesh : meshes) {