Merge pull request #1577 from elect86/patch-14

Update ValidateDataStructure.cpp, typo
pull/1508/head
Kim Kulling 2017-11-18 09:14:47 +01:00 committed by GitHub
commit 3e78bd51d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -334,28 +334,28 @@ void ValidateDSProcess::Validate( const aiMesh* pMesh)
case 1: case 1:
if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_POINT)) if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_POINT))
{ {
ReportError("aiMesh::mFaces[%i] is a POINT but aiMesh::mPrimtiveTypes " ReportError("aiMesh::mFaces[%i] is a POINT but aiMesh::mPrimitiveTypes "
"does not report the POINT flag",i); "does not report the POINT flag",i);
} }
break; break;
case 2: case 2:
if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_LINE)) if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_LINE))
{ {
ReportError("aiMesh::mFaces[%i] is a LINE but aiMesh::mPrimtiveTypes " ReportError("aiMesh::mFaces[%i] is a LINE but aiMesh::mPrimitiveTypes "
"does not report the LINE flag",i); "does not report the LINE flag",i);
} }
break; break;
case 3: case 3:
if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_TRIANGLE)) if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_TRIANGLE))
{ {
ReportError("aiMesh::mFaces[%i] is a TRIANGLE but aiMesh::mPrimtiveTypes " ReportError("aiMesh::mFaces[%i] is a TRIANGLE but aiMesh::mPrimitiveTypes "
"does not report the TRIANGLE flag",i); "does not report the TRIANGLE flag",i);
} }
break; break;
default: default:
if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_POLYGON)) if (0 == (pMesh->mPrimitiveTypes & aiPrimitiveType_POLYGON))
{ {
this->ReportError("aiMesh::mFaces[%i] is a POLYGON but aiMesh::mPrimtiveTypes " this->ReportError("aiMesh::mFaces[%i] is a POLYGON but aiMesh::mPrimitiveTypes "
"does not report the POLYGON flag",i); "does not report the POLYGON flag",i);
} }
break; break;