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:
parent
95bd26e1f2
commit
9a1902b1cb
6
WFObj.cc
6
WFObj.cc
@ -182,7 +182,11 @@ GLuint WFObj::render()
|
|||||||
{
|
{
|
||||||
string type = m_data[i][0];
|
string type = m_data[i][0];
|
||||||
if (type == "v")
|
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")
|
else if (type == "vt")
|
||||||
vertices[VERTEX_TEXTURE].push_back(readVertex(m_data[i]));
|
vertices[VERTEX_TEXTURE].push_back(readVertex(m_data[i]));
|
||||||
else if (type == "vn")
|
else if (type == "vn")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user