Merge pull request #4567 from assimp/kimkulling/fix_nullptr_exception_opnglb_export_issue4418

Fix  possible nullptr exception
kimkulling/create_skeleton_data_issue_4015^2
Kim Kulling 2022-06-08 08:13:16 +02:00 committed by GitHub
commit 0768a13057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -908,7 +908,7 @@ Ref<Node> FindSkeletonRootJoint(Ref<Skin> &skinRef) {
do {
startNodeRef = parentNodeRef;
parentNodeRef = startNodeRef->parent;
} while (!parentNodeRef->jointName.empty());
} while (parentNodeRef && !parentNodeRef->jointName.empty());
return parentNodeRef;
}