Merge branch 'assimp:master' into master
commit
05b9940ce3
|
@ -142,6 +142,7 @@ void ScenePreprocessor::ProcessMesh(aiMesh *mesh) {
|
||||||
// If the information which primitive types are there in the
|
// If the information which primitive types are there in the
|
||||||
// mesh is currently not available, compute it.
|
// mesh is currently not available, compute it.
|
||||||
if (!mesh->mPrimitiveTypes) {
|
if (!mesh->mPrimitiveTypes) {
|
||||||
|
ai_assert(mesh->mFaces != nullptr);
|
||||||
for (unsigned int a = 0; a < mesh->mNumFaces; ++a) {
|
for (unsigned int a = 0; a < mesh->mNumFaces; ++a) {
|
||||||
aiFace &face = mesh->mFaces[a];
|
aiFace &face = mesh->mFaces[a];
|
||||||
switch (face.mNumIndices) {
|
switch (face.mNumIndices) {
|
||||||
|
|
Loading…
Reference in New Issue