Fix possible nullptr dereferencing. (#5595)
parent
ec5242a1a0
commit
30466aaf16
|
@ -524,6 +524,10 @@ void CatmullClarkSubdivider::InternSubdivide(
|
|||
}
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue