Fixed invalid armature node population when there's mesh on a node with the same name as the bone

pull/2987/head
Frooxius 2020-02-06 10:28:38 +01:00
parent cb02e2fc65
commit 29603128f4
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ void ArmaturePopulate::BuildNodeList(const aiNode *current_node,
aiNode *child = current_node->mChildren[nodeId];
ai_assert(child);
nodes.push_back(child);
if (child->mNumMeshes == 0)
nodes.push_back(child);
BuildNodeList(child, nodes);
}