Add mesh name to ValidateDataStructure log

pull/1972/head
Alexandre Avenel 2018-05-19 22:02:54 +02:00
parent 0d0ba4e1b8
commit 6c0553d810
1 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ void ValidateDSProcess::Validate( const aiMesh* pMesh)
// positions must always be there ... // positions must always be there ...
if (!pMesh->mNumVertices || (!pMesh->mVertices && !mScene->mFlags)) { if (!pMesh->mNumVertices || (!pMesh->mVertices && !mScene->mFlags)) {
ReportError("The mesh contains no vertices"); ReportError("The mesh %s contains no vertices", pMesh->mName.C_Str());
} }
if (pMesh->mNumVertices > AI_MAX_VERTICES) { if (pMesh->mNumVertices > AI_MAX_VERTICES) {
@ -386,7 +386,7 @@ void ValidateDSProcess::Validate( const aiMesh* pMesh)
// faces, too // faces, too
if (!pMesh->mNumFaces || (!pMesh->mFaces && !mScene->mFlags)) { if (!pMesh->mNumFaces || (!pMesh->mFaces && !mScene->mFlags)) {
ReportError("Mesh contains no faces"); ReportError("Mesh %s contains no faces", pMesh->mName.C_Str());
} }
// now check whether the face indexing layout is correct: // now check whether the face indexing layout is correct: