Update SortByPTypeProcess.cpp

Small refactorings.
pull/5765/head
Kim Kulling 2024-09-10 09:02:32 +02:00 committed by GitHub
parent 7eec2cd02c
commit 55d22c28be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ void SortByPTypeProcess::Execute(aiScene *pScene) {
// with the largest number of primitives
unsigned int aiNumPerPType[4] = { 0, 0, 0, 0 };
aiFace *pFirstFace = mesh->mFaces;
if (!pFirstFace) {
if (pFirstFace == nullptr) {
continue;
}