diff --git a/WFObj.cc b/WFObj.cc index 6447bf5..b1e2ab3 100644 --- a/WFObj.cc +++ b/WFObj.cc @@ -182,7 +182,11 @@ GLuint WFObj::render() { string type = m_data[i][0]; if (type == "v") - vertices[VERTEX].push_back(readVertex(m_data[i])); + { + Vertex v = readVertex(m_data[i]); + updateAABB(v.getData()); + vertices[VERTEX].push_back(v); + } else if (type == "vt") vertices[VERTEX_TEXTURE].push_back(readVertex(m_data[i])); else if (type == "vn")