- fix ply ascii reader with custom face properties which aren't declared as list

- extend unittest for this case

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1284 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-06-16 08:37:42 +00:00
parent 324acba2f2
commit 59b0cafecd
3 changed files with 25 additions and 23 deletions

View File

@@ -239,6 +239,10 @@ void _PLYReader_::readCustomProperty(std::istream& _in, BaseImporter& _bi, Handl
case ValueTypeCHAR:
assignCustomProperty<char>(_in,_bi,_h,_propName,isList);
break;
case ValueTypeUINT8:
case ValueTypeUCHAR:
assignCustomProperty<unsigned char>(_in,_bi,_h,_propName,isList);
break;
case ValueTypeINT16:
case ValueTypeSHORT:
assignCustomProperty<short>(_in,_bi,_h,_propName,isList);
@@ -1190,8 +1194,7 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
options_ += Options::Custom;
else
omerr() << "Custom Properties not supported in binary files. Skipping" << std::endl;
PropertyInfo entry(prop, valueType, propertyName);
vertexProperties_.push_back(entry);
entry = PropertyInfo(prop, valueType, propertyName);
}
if (entry.property != UNSUPPORTED)