Commit 41befff9 authored by Jan Möbius's avatar Jan Möbius

Fixed crash in binary reader, where properties where not requested properly...

Fixed crash in binary reader, where properties where not requested properly which crashed with texture coordinates

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11883 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f5ea7390
......@@ -335,6 +335,18 @@ bool FilePLYPlugin::readMeshFileBinary(QString _filename, MeshT* _mesh, const PL
bool fColors = ((gui && loadFaceColor_->isChecked()) ||
(!gui && OpenFlipperSettings().value("FilePLY/Load/FaceColor",true).toBool()));
// Request properties
if(vNormals)
_mesh->request_vertex_normals();
if(vColors)
_mesh->request_vertex_colors();
if(vTexCoords)
_mesh->request_vertex_texcoords2D();
if(fNormals)
_mesh->request_face_normals();
if(fColors)
_mesh->request_face_colors();
unsigned int propIndex;
unsigned int numProps = _header.vProps.size();
typename MeshT::VertexHandle currentVertex;
......
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