Skip to content

Commit

Permalink
Merge branch 'assimp:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu0617 committed Dec 8, 2022
2 parents e839311 + b2b85bf commit 05b9940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/Common/ScenePreprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void ScenePreprocessor::ProcessMesh(aiMesh *mesh) {
// If the information which primitive types are there in the
// mesh is currently not available, compute it.
if (!mesh->mPrimitiveTypes) {
ai_assert(mesh->mFaces != nullptr);
for (unsigned int a = 0; a < mesh->mNumFaces; ++a) {
aiFace &face = mesh->mFaces[a];
switch (face.mNumIndices) {
Expand Down

0 comments on commit 05b9940

Please sign in to comment.