Merge pull request #1595 from Matter-and-Form/fix/gltf2-preserve-node-names

[glTF2] Preserve node names when importing
This commit is contained in:
Kim Kulling
2017-11-28 08:47:49 +01:00
committed by GitHub

View File

@@ -516,7 +516,7 @@ aiNode* ImportNode(aiScene* pScene, glTF2::Asset& r, std::vector<unsigned int>&
{
Node& node = *ptr;
aiNode* ainode = new aiNode(node.id);
aiNode* ainode = new aiNode(node.name);
if (!node.children.empty()) {
ainode->mNumChildren = unsigned(node.children.size());