fixed bounding box creation bug

This commit is contained in:
Sandro Sobczyński authored and GitHub committed 2021-05-31 18:02:01 +02:00
1 parent 7bfe7675cb
commit 3f3e6a0df4
1 file changed
+1 -1
+1 -1
View File
@@ -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;