From 3f3e6a0df442e74c4527e8a50e8c0edff7c306fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Sobczy=C5=84ski?= <32263891+h4570@users.noreply.github.com> Date: Mon, 31 May 2021 18:02:01 +0200 Subject: [PATCH] fixed bounding box creation bug --- src/engine/models/mesh_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/models/mesh_frame.cpp b/src/engine/models/mesh_frame.cpp index 699c39c..258f805 100644 --- a/src/engine/models/mesh_frame.cpp +++ b/src/engine/models/mesh_frame.cpp @@ -86,7 +86,7 @@ void MeshFrame::calculateBoundingBoxes() { assertMsg(_areVerticesAllocated, "Can't calculate bounding box, because vertices were not allocated!"); for (u32 i = 0; i < materialsCount; i++) - materials->calculateBoundingBox(vertices, vertexCount); + materials[i].calculateBoundingBox(vertices, vertexCount); float lowX, lowY, lowZ, hiX, hiY, hiZ; lowX = hiX = vertices[0].x;