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:
parent
ba2fd0316b
commit
fcd3150b12
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user