Commit 48f18d64 authored by Jan Möbius's avatar Jan Möbius

PLY Reader Fix: locking up when loading some binary files ( Thanks to Peter Newman for the patch)



git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1042 fdac6126-5c0c-442c-9429-916003d36597
parent aee62d09
......@@ -938,14 +938,20 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
faceIndexType_ = ValueTypeUCHAR;
} else {
omerr() << "Unsupported Index type for face list: " << listIndexType << std::endl;
return false;
}
if (listEntryType == "int32") {
faceEntryType_ = ValueTypeINT32;
} else if (listEntryType == "int") {
faceEntryType_ = ValueTypeINT;
} else if (listEntryType == "uint32") {
faceEntryType_ = ValueTypeUINT32;
} else if (listEntryType == "uint") {
faceEntryType_ = ValueTypeUINT;
} else {
omerr() << "Unsupported Entry type for face list: " << listEntryType << std::endl;
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment