PLY: add support for unsigned custom property length

This commit is contained in:
Jan Möbius
2019-09-03 08:15:16 +02:00
parent b15e09d1d3
commit d91986fc30
2 changed files with 15 additions and 3 deletions

View File

@@ -219,11 +219,11 @@ void _PLYReader_::readCreateCustomProperty(std::istream& _in, BaseImporter& _bi,
}
//init vector
int numberOfValues;
read(_listType, _in, numberOfValues, OpenMesh::GenProg::Bool2Type<binary>());
unsigned int numberOfValues;
readInteger(_listType, _in, numberOfValues, OpenMesh::GenProg::Bool2Type<binary>());
std::vector<T> vec(numberOfValues);
//read and assign
for (int i = 0; i < numberOfValues; ++i)
for (unsigned int i = 0; i < numberOfValues; ++i)
{
read(_valueType, _in, vec[i], OpenMesh::GenProg::Bool2Type<binary>());
}