Fixes to .obj plugin from gideon.

This commit is contained in:
Robert Osfield
2002-04-25 11:30:21 +00:00
parent 1d8533c8ee
commit 6dbfa3b88d
3 changed files with 6 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ osg::Drawable* ReaderWriterOBJ::makeDrawable(GLMmodel* obj,
IndexVec tcount(obj->numtexcoords+1,0);
bool needNormals = obj->normals && obj->normals>0;
bool needTexcoords = obj->texcoords && obj->numtexcoords>0;
bool needTexcoords = obj->texcoords && obj->numtexcoords>0 && grp->hastexcoords;
// first count the number of vertices used in this group.
for (i = 0; i < ntris; i++)