From 05e90d495f82aff2f11f6d329afb06a2a35d7374 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 16 Jan 2024 09:59:41 -0600 Subject: [PATCH] load mesh data and structure meshes --- src/engine/gameManager/BuildingManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index fc71cda6..6598a3b4 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -995,8 +995,11 @@ public enum BuildingManager { for (int mesh : meshes) { - if (!mesh_heights.containsKey(mesh) || !mesh_triangle_points.containsKey(mesh)) - return; //no data for this mesh + if (!mesh_heights.containsKey(mesh)) { + continue; //no data for this mesh + } + if(!mesh_triangle_points.containsKey(mesh)) + continue; Mesh generatedMesh = new Mesh(); generatedMesh.parentBuilding = building;