From Tom Jolly, Fix to handling of triangle fans.

This commit is contained in:
Robert Osfield
2003-11-13 15:45:31 +00:00
parent c41221f2ac
commit 8af38347d1

View File

@@ -479,6 +479,7 @@ int ConvertFromPerformer::getNumVerts(pfGeoSet *gset)
break;
case PFGS_TRISTRIPS :
case PFGS_TRIFANS :
case PFGS_FLAT_TRISTRIPS :
case PFGS_POLYS :
case PFGS_LINESTRIPS :
@@ -906,7 +907,6 @@ osg::Drawable* ConvertFromPerformer::visitGeoSet(osg::Geode* osgGeode,pfGeoSet*
if(ilist)
{
// geom->setTexCoordIndices(0,new osg::UShortArray(nn,ilist));
geom->setColorIndices(new osg::UShortArray(nn,ilist));
}