From Laurens Voerman, "While working on the osg exporter for 3dsmax I found a bug in the TriStripVisitor. I created a small example (attached), and a modified version of

src\osgUtil\TriStripVisitor.cpp where the problem is removed."
This commit is contained in:
Robert Osfield 2011-05-27 09:00:53 +00:00
parent ba2fd0316b
commit fcd3150b12

View File

@ -77,7 +77,16 @@ struct VertexAttribComparitor
void add(osg::Array* array, osg::Geometry::AttributeBinding binding)
{
if (binding==osg::Geometry::BIND_PER_VERTEX && array)
{
for(ArrayList::const_iterator itr=_arrayList.begin();
itr!=_arrayList.end();
++itr)
{
if ((*itr) == array)
return;
}
_arrayList.push_back(array);
}
}
typedef std::vector<osg::Array*> ArrayList;