From Per Fahlberg, "Attached is a fix to get the proper normals on an md2 model, actually

the way it was before would sometimes lead to a crash since it was
attaching the wrong array to the geometry..."
This commit is contained in:
Robert Osfield
2006-10-30 12:28:37 +00:00
parent f9b9efec16
commit 0f65ed9189

View File

@@ -379,7 +379,7 @@ load_md2 (const char *filename, const osgDB::ReaderWriter::Options* options)
geom->setTexCoordArray (0, texCoords);
geom->setTexCoordIndices (0, texIndices);
geom->setNormalArray (g_md2NormalsArray);
geom->setNormalArray (normalCoords);
geom->setNormalIndices (normalIndices);
geom->setNormalBinding (osg::Geometry::BIND_PER_VERTEX);