Updates to flt loading of light points, from Brede Johansen.
This commit is contained in:
parent
73e598f3ff
commit
52cf47bf2e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user