Skip to content

Commit

Permalink
SplitByBoneCount had a minor typo that prevented updates to nodes ind…
Browse files Browse the repository at this point in the history
…ices (assimp#5550)
  • Loading branch information
Succ3s authored Apr 23, 2024
1 parent b71b8f7 commit 7bda0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PostProcessing/SplitByBoneCountProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ void SplitByBoneCountProcess::SplitMesh( const aiMesh* pMesh, std::vector<aiMesh
// Recursively updates the node's mesh list to account for the changed mesh list
void SplitByBoneCountProcess::UpdateNode( aiNode* pNode) const {
// rebuild the node's mesh index list
if( pNode->mNumMeshes == 0 ) {
if( pNode->mNumMeshes != 0 ) {
IndexArray newMeshList;
for( unsigned int a = 0; a < pNode->mNumMeshes; ++a) {
unsigned int srcIndex = pNode->mMeshes[a];
Expand Down

0 comments on commit 7bda0f8

Please sign in to comment.