Merge branch 'master' into empty-string-style
This commit is contained in:
@@ -135,7 +135,9 @@ void SortByPTypeProcess::Execute(aiScene *pScene) {
|
||||
std::vector<unsigned int>::iterator meshIdx = replaceMeshIndex.begin();
|
||||
for (unsigned int i = 0; i < pScene->mNumMeshes; ++i) {
|
||||
aiMesh *const mesh = pScene->mMeshes[i];
|
||||
ai_assert(0 != mesh->mPrimitiveTypes);
|
||||
if (mesh->mPrimitiveTypes == 0) {
|
||||
throw DeadlyImportError("Mesh with invalid primitive type: ", mesh->mName.C_Str());
|
||||
}
|
||||
|
||||
// if there's just one primitive type in the mesh there's nothing to do for us
|
||||
unsigned int num = 0;
|
||||
|
||||
Reference in New Issue
Block a user