actually call updateAABB() when read vertex data...

git-svn-id: svn://anubis/misc/wfobj@43 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2008-03-03 02:08:28 +00:00
parent 95bd26e1f2
commit 9a1902b1cb

View File

@ -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")