fixed bounding box creation bug
This commit is contained in:
committed by
GitHub
parent
7bfe7675cb
commit
3f3e6a0df4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user