Updates to flt loading of light points, from Brede Johansen.

This commit is contained in:
Robert Osfield 2001-12-20 12:12:30 +00:00
parent 73e598f3ff
commit 52cf47bf2e

View File

@ -946,11 +946,22 @@ int ConvertFromFLT::addVertices(GeoSetBuilder* pBuilder, PrimNodeRecord* primRec
}
}
if (vertices > 0) dgset->addPrimLen(vertices);
if (vertices > 0)
{
if (dgset->getPrimType() == osg::GeoSet::POINTS)
{
for (i=0; i < vertices; i++)
dgset->addPrimLen(1);
}
else
{
dgset->addPrimLen(vertices);
}
}
return vertices;
}
int ConvertFromFLT::visitVertexList(GeoSetBuilder* pBuilder, VertexListRecord* rec)
{
DynGeoSet* dgset = pBuilder->getDynGeoSet();