Skip to content

Commit

Permalink
Merge branch 'assimp:master' into obj-gcc14-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dbs4261 committed May 24, 2024
2 parents d1c66da + 30466aa commit 4551cf6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/Common/Subdivision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@ void CatmullClarkSubdivider::InternSubdivide(
}
}

ai_assert(adj[o] - moffsets[nidx].first < mp->mNumFaces);
if (mp == nullptr) {
continue;
}

ai_assert(adj[o] - moffsets[nidx].first < mp->mNumFaces);
const aiFace &f = mp->mFaces[adj[o] - moffsets[nidx].first];
bool haveit = false;

Expand Down

0 comments on commit 4551cf6

Please sign in to comment.