Commit c040f134 authored by Marcel Campen's avatar Marcel Campen
Browse files

Now ignores unknown properties instead of crashing


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14741 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 487d53fd
......@@ -229,7 +229,7 @@ bool FilePLYPlugin::parseHeader(QString _filename, PLYHeader& _header) {
_header.hasFaceColorAlpha = true;
_header.vProps.push_back(PPair("rgb",dStringPType));
}
} else if(dString == "u" || dString == "v") {
} else if(dString == "u" || dString == "v" || dString == "texture_u" || dString == "texture_v") {
if(lastElement == "vertex") {
_header.hasVertexTexCoords = true;
_header.vProps.push_back(PPair("uv",dStringPType));
......@@ -258,6 +258,12 @@ bool FilePLYPlugin::parseHeader(QString _filename, PLYHeader& _header) {
_header.hasFaceColors = true;
_header.fProps.push_back(PPair("s_rgb",dStringPType));
}
} else {
if(lastElement == "vertex") {
_header.vProps.push_back(PPair("unknown",dStringPType));
} else if(lastElement == "face") {
_header.fProps.push_back(PPair("unknown",dStringPType));
}
}
} else {
continue;
......
Supports Markdown
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