diff --git a/src/osgUtil/TriStripVisitor.cpp b/src/osgUtil/TriStripVisitor.cpp index 5a998872a..870ae0632 100644 --- a/src/osgUtil/TriStripVisitor.cpp +++ b/src/osgUtil/TriStripVisitor.cpp @@ -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 ArrayList;