Update PlyLoader.cpp
parent
342824303c
commit
f438652df8
|
@ -751,7 +751,7 @@ void PLYImporter::LoadFaces(std::vector<PLY::Face>* pvOut)
|
||||||
// index of the vertex index list
|
// index of the vertex index list
|
||||||
unsigned int iProperty = 0xFFFFFFFF;
|
unsigned int iProperty = 0xFFFFFFFF;
|
||||||
PLY::EDataType eType = EDT_Char;
|
PLY::EDataType eType = EDT_Char;
|
||||||
bool bIsTristrip = false;
|
bool bIsTriStrip = false;
|
||||||
|
|
||||||
// index of the material index property
|
// index of the material index property
|
||||||
unsigned int iMaterialIndex = 0xFFFFFFFF;
|
unsigned int iMaterialIndex = 0xFFFFFFFF;
|
||||||
|
@ -802,7 +802,7 @@ void PLYImporter::LoadFaces(std::vector<PLY::Face>* pvOut)
|
||||||
if (!(*a).bIsList)continue;
|
if (!(*a).bIsList)continue;
|
||||||
iProperty = _a;
|
iProperty = _a;
|
||||||
bOne = true;
|
bOne = true;
|
||||||
bIsTristrip = true;
|
bIsTriStrip = true;
|
||||||
eType = (*a).eType;
|
eType = (*a).eType;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -812,7 +812,7 @@ void PLYImporter::LoadFaces(std::vector<PLY::Face>* pvOut)
|
||||||
// check whether we have at least one per-face information set
|
// check whether we have at least one per-face information set
|
||||||
if (pcList && bOne)
|
if (pcList && bOne)
|
||||||
{
|
{
|
||||||
if (!bIsTristrip)
|
if (!bIsTriStrip)
|
||||||
{
|
{
|
||||||
pvOut->reserve(pcList->alInstances.size());
|
pvOut->reserve(pcList->alInstances.size());
|
||||||
for (std::vector<ElementInstance>::const_iterator i = pcList->alInstances.begin();
|
for (std::vector<ElementInstance>::const_iterator i = pcList->alInstances.begin();
|
||||||
|
|
Loading…
Reference in New Issue